From af12cef99d8acfe8b2bf292f56b5fb3304671a21 Mon Sep 17 00:00:00 2001 From: Ong Jun Xiong Date: Mon, 9 Oct 2023 01:17:23 +0800 Subject: [PATCH] add comments on code --- frontend/src/pages/questions/[id].tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/questions/[id].tsx b/frontend/src/pages/questions/[id].tsx index d8322e10..47bf0687 100644 --- a/frontend/src/pages/questions/[id].tsx +++ b/frontend/src/pages/questions/[id].tsx @@ -14,7 +14,7 @@ export default function Room() { const router = useRouter(); const questionTitle = router.query.id as string; const [question, setQuestion] = useState(null); - const [loading, setLoading] = useState(true); + const [loading, setLoading] = useState(true); // to be used later for loading states const [answer, setAnswer] = useState(""); const { user: currentUser, authIsReady } = useContext(AuthContext);