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