Small fixes

This commit is contained in:
Justin Edmund 2020-09-25 06:08:57 -07:00
parent f1f74f06c7
commit f1f6352b22
2 changed files with 2 additions and 3 deletions

View file

@ -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 => {

View file

@ -7,7 +7,7 @@ interface Props {}
interface NewProps extends RouteComponentProps<Props> {}
const New: React.FC<NewProps> = (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?