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 7ea38ba commit 937a2fdCopy full SHA for 937a2fd
src/modules/Bingo/BingoQR.tsx
@@ -12,6 +12,11 @@ const BingoQR = () => {
12
if (myId === null) window.location.href = "";
13
14
const user = await getUser(myId);
15
+ if (user === null) {
16
+ localStorage.setItem("myID", "");
17
+ window.location.href = "";
18
+ }
19
+
20
const result = await updateBingoBoard(id, user.user_id);
21
if (result === true) window.location.href = "/bingo";
22
};
0 commit comments