Skip to content

Commit 7ea38ba

Browse files
committed
빙고판 생성안되는 케이스 수정
1 parent 36c6f9c commit 7ea38ba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/api/bingo_api.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ export const getBingoBoard = async (userId: string) => {
4747
return [];
4848
}
4949
const data = await response.json();
50+
if (data.ok === false) {
51+
return [];
52+
}
53+
5054
const boardData = data["board_data"];
5155
const items = Object.keys(boardData).map((key) => ({
5256
...boardData[key],

0 commit comments

Comments
 (0)