From 37a7faed65d397b7c00f55fe97c93cced6dc6b23 Mon Sep 17 00:00:00 2001 From: Juan Carlos Farah Date: Tue, 12 Mar 2024 18:06:00 +0100 Subject: [PATCH] fix: add initial answer state --- src/modules/main/PlayerView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/main/PlayerView.tsx b/src/modules/main/PlayerView.tsx index 888a0522..29b09da8 100644 --- a/src/modules/main/PlayerView.tsx +++ b/src/modules/main/PlayerView.tsx @@ -30,7 +30,7 @@ const PlayerView = (): JSX.Element => { const { data: appData } = hooks.useAppData(); const { mutate: postAppData } = mutations.usePostAppData(); - const [answer, setAnswer] = useState(); + const [answer, setAnswer] = useState(''); const [savedAnswer, setSavedAnswer] = useState(''); // use effect to get required app data