hint fix
This commit is contained in:
1 parent
70fb9e4850
commit
dbfa9788a7
1 file changed
+4
@@ -15,5 +15,9 @@ export function getBoughtHints(): number[] {
|
|||||||
if (hintsList === null) {
|
if (hintsList === null) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
return JSON.parse(hintsList);
|
return JSON.parse(hintsList);
|
||||||
|
} catch {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user