Cleanup
This commit is contained in:
parent
499dde433e
commit
68a6e037f2
3 changed files with 6 additions and 6 deletions
|
|
@ -57,7 +57,7 @@ const SignupModal = (props: Props) => {
|
|||
|
||||
setErrors(newErrors)
|
||||
}, (error) => {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
@ -88,7 +88,7 @@ const SignupModal = (props: Props) => {
|
|||
|
||||
props.close()
|
||||
}, (error) => {
|
||||
console.log(error)
|
||||
console.error(error)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -70,6 +70,8 @@ const WeaponGrid = (props: Props) => {
|
|||
}
|
||||
|
||||
function processResult(response: AxiosResponse) {
|
||||
console.log("Retrieved data from server...")
|
||||
|
||||
// Store the response
|
||||
const party = response.data.party
|
||||
|
||||
|
|
@ -252,7 +254,7 @@ const WeaponGrid = (props: Props) => {
|
|||
|
||||
const extraGridElement = (
|
||||
<ExtraWeapons
|
||||
grid={appState.grid.weapons.allWeapons}
|
||||
grid={grid.weapons.allWeapons}
|
||||
editable={party.editable}
|
||||
offset={numWeapons}
|
||||
updateObject={receiveWeaponFromSearch}
|
||||
|
|
|
|||
|
|
@ -2,11 +2,9 @@ import React from 'react'
|
|||
import { useRouter } from 'next/router'
|
||||
|
||||
import Party from '~components/Party'
|
||||
import * as AlertDialog from '@radix-ui/react-alert-dialog'
|
||||
|
||||
const PartyRoute: React.FC = () => {
|
||||
const router = useRouter()
|
||||
const { party: slug } = router.query
|
||||
const { party: slug } = useRouter().query
|
||||
|
||||
return (
|
||||
<div id="Content">
|
||||
|
|
|
|||
Loading…
Reference in a new issue