Fix the bug caused by the fix of the previous bug...
This commit is contained in:
parent
87b7d9e246
commit
f80ff9c60d
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ export default function GameRoom({ params }: roomProps) {
|
||||||
const localBrowserId = localStorage.getItem("browserId")
|
const localBrowserId = localStorage.getItem("browserId")
|
||||||
setBrowserId(localBrowserId)
|
setBrowserId(localBrowserId)
|
||||||
const localCustomQuestionsString = localStorage.getItem("customQuestions")
|
const localCustomQuestionsString = localStorage.getItem("customQuestions")
|
||||||
const localCustomQuestions = JSON.parse(localCustomQuestionsString != null ? localCustomQuestionsString : "{}")
|
const localCustomQuestions = JSON.parse(localCustomQuestionsString != null ? localCustomQuestionsString : "[]")
|
||||||
setCustomQuestions(localCustomQuestions == null ? [] : localCustomQuestions)
|
setCustomQuestions(localCustomQuestions == null ? [] : localCustomQuestions)
|
||||||
|
|
||||||
// Listen for incoming setMessages
|
// Listen for incoming setMessages
|
||||||
|
|
Loading…
Reference in a new issue