Skip to content

Commit 149aa84

Browse files
committed
QR 실패시 메인페이지 안가는 부분 수정
1 parent 275dc8a commit 149aa84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/Bingo/BingoQR.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ const BingoQR = () => {
1010
const fetchData = async () => {
1111
const origin_id = atob(id);
1212
const myId = localStorage.getItem("myID");
13-
if (myId === null || myId === "") window.location.href = "";
13+
if (myId === null || myId === "") window.location.href = "/";
1414

1515
const user = await getUser(myId);
1616
if (user === null || user.ok === false) {
1717
localStorage.setItem("myID", "");
18-
window.location.href = "";
18+
window.location.href = "/";
1919
}
2020

2121
const result = await updateBingoBoard(origin_id, user.user_id);

0 commit comments

Comments
 (0)