We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36c6f9c commit 7ea38baCopy full SHA for 7ea38ba
src/api/bingo_api.ts
@@ -47,6 +47,10 @@ export const getBingoBoard = async (userId: string) => {
47
return [];
48
}
49
const data = await response.json();
50
+ if (data.ok === false) {
51
+ return [];
52
+ }
53
+
54
const boardData = data["board_data"];
55
const items = Object.keys(boardData).map((key) => ({
56
...boardData[key],
0 commit comments