From f80ff9c60d2edc69d6199f435a078ed1b3facb92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucien=20Asti=C3=A9?= Date: Sat, 10 Aug 2024 17:04:10 +0200 Subject: [PATCH] Fix the bug caused by the fix of the previous bug... --- app/[id]/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/[id]/page.tsx b/app/[id]/page.tsx index 0ee7852..17ddbff 100644 --- a/app/[id]/page.tsx +++ b/app/[id]/page.tsx @@ -56,7 +56,7 @@ export default function GameRoom({ params }: roomProps) { const localBrowserId = localStorage.getItem("browserId") setBrowserId(localBrowserId) const localCustomQuestionsString = localStorage.getItem("customQuestions") - const localCustomQuestions = JSON.parse(localCustomQuestionsString != null ? localCustomQuestionsString : "{}") + const localCustomQuestions = JSON.parse(localCustomQuestionsString != null ? localCustomQuestionsString : "[]") setCustomQuestions(localCustomQuestions == null ? [] : localCustomQuestions) // Listen for incoming setMessages