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 3ac3969 commit c6bdab7Copy full SHA for c6bdab7
src/modules/Home/Home.tsx
@@ -42,8 +42,18 @@ const Home = () => {
42
43
const bingoData = await getBingoBoard(loginId);
44
if (bingoData.length == 0) {
45
+ const boardData: {
46
+ [key: string]: { value: string; status: number; selected: number };
47
+ } = {};
48
let bingoBoard = shuffleArray(defafultBingoBoard);
- await createBingoBoard(result.user_id, bingoBoard);
49
+ bingoBoard.forEach((item, index) => {
50
+ return (boardData[index] = {
51
+ value: item.value,
52
+ status: 0,
53
+ selected: 0,
54
+ });
55
56
+ await createBingoBoard(result.user_id, boardData);
57
}
58
59
window.location.href = "/bingo";
0 commit comments