From 68a6e037f2e4168f60771d2215cfa7b5d7756508 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sat, 26 Feb 2022 15:53:46 -0800 Subject: [PATCH] Cleanup --- components/SignupModal/index.tsx | 4 ++-- components/WeaponGrid/index.tsx | 4 +++- pages/p/[party].tsx | 4 +--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/SignupModal/index.tsx b/components/SignupModal/index.tsx index 137217a8..ee6e15b4 100644 --- a/components/SignupModal/index.tsx +++ b/components/SignupModal/index.tsx @@ -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) }) } } diff --git a/components/WeaponGrid/index.tsx b/components/WeaponGrid/index.tsx index 0be9798a..c5d1c5e0 100644 --- a/components/WeaponGrid/index.tsx +++ b/components/WeaponGrid/index.tsx @@ -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 = ( { - const router = useRouter() - const { party: slug } = router.query + const { party: slug } = useRouter().query return (