Skip to content

Commit

Permalink
fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kavigupta committed Feb 1, 2025
1 parent 7aa8877 commit 518fbdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion react/src/navigation/PageDescriptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ export async function loadPageDescriptor(newDescriptor: PageDescriptor, settings
break
case 'infinite':
if (updatedDescriptor.seed === undefined) {
const [seedVersions] = getInfiniteQuizzes(JSON.parse(localStorage.quiz_history as string) as QuizHistory, false)
const [seedVersions] = getInfiniteQuizzes(JSON.parse((localStorage.quiz_history || '{}') as string) as QuizHistory, false)
if (seedVersions.length > 0) {
const [seed, version] = seedVersions[0]
updatedDescriptor.seed = seed
Expand Down

0 comments on commit 518fbdf

Please sign in to comment.