Skip to content

Commit 937a2fd

Browse files
committed
BingoQR 버그 수정
1 parent 7ea38ba commit 937a2fd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/modules/Bingo/BingoQR.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ const BingoQR = () => {
1212
if (myId === null) window.location.href = "";
1313

1414
const user = await getUser(myId);
15+
if (user === null) {
16+
localStorage.setItem("myID", "");
17+
window.location.href = "";
18+
}
19+
1520
const result = await updateBingoBoard(id, user.user_id);
1621
if (result === true) window.location.href = "/bingo";
1722
};

0 commit comments

Comments
 (0)