diff --git a/app/[id]/page.tsx b/app/[id]/page.tsx index 773d831..0ee7852 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 diff --git a/package.json b/package.json index 45e0f6a..98d6f04 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "dev": "node server.mjs", "build": "next build", - "start": "NODE_ENV='production' && node server.mjs", + "start": "NODE_ENV=production && node server.mjs", "lint": "next lint", "websocket": "node server.mjs" },