Skip to content

Commit

Permalink
QR 실패시 메인페이지 안가는 부분 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
4roring committed Nov 22, 2024
1 parent 275dc8a commit 149aa84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/Bingo/BingoQR.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ const BingoQR = () => {
const fetchData = async () => {
const origin_id = atob(id);
const myId = localStorage.getItem("myID");
if (myId === null || myId === "") window.location.href = "";
if (myId === null || myId === "") window.location.href = "/";

const user = await getUser(myId);
if (user === null || user.ok === false) {
localStorage.setItem("myID", "");
window.location.href = "";
window.location.href = "/";
}

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

0 comments on commit 149aa84

Please sign in to comment.