From f1f6352b22690888228116a8308bd38a2601322e Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Fri, 25 Sep 2020 06:08:57 -0700 Subject: [PATCH] Small fixes --- src/components/WeaponGrid/WeaponGrid.tsx | 3 +-- src/routes/New/New.tsx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/WeaponGrid/WeaponGrid.tsx b/src/components/WeaponGrid/WeaponGrid.tsx index 94735afd..42bed465 100644 --- a/src/components/WeaponGrid/WeaponGrid.tsx +++ b/src/components/WeaponGrid/WeaponGrid.tsx @@ -2,7 +2,6 @@ import React, { useEffect, useState } from 'react' import api from '~utils/api' import history from '~utils/history' - import WeaponUnit from '~components/WeaponUnit/WeaponUnit' import Button from '~components/Button/Button' @@ -68,7 +67,7 @@ const WeaponGrid = (props: Props) => { if (props.pushHistory) { props.pushHistory(`/p/${party.shortcode}`) } - + return party.id }) .then(partyId => { diff --git a/src/routes/New/New.tsx b/src/routes/New/New.tsx index f2f29a09..92eaba87 100644 --- a/src/routes/New/New.tsx +++ b/src/routes/New/New.tsx @@ -7,7 +7,7 @@ interface Props {} interface NewProps extends RouteComponentProps {} const New: React.FC = (props: NewProps) => { - const [cookies, setCookie] = useCookies(['userId']) + const [cookies, setCookie] = useCookies(['user']) function callback(path: string) { // This is scuffed, how do we do this natively?