File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ import {
88 createBingoBoard ,
99 getBingoBoard ,
1010} from "../../api/bingo_api" ;
11+ import {
12+ defafultBingoBoard ,
13+ shuffleArray ,
14+ } from "../Bingo/components/DefaultBingoBoard" ;
1115
1216const StyledContainer = styled ( Container ) ( {
1317 textAlign : "center" ,
@@ -38,10 +42,8 @@ const Home = () => {
3842
3943 const bingoData = await getBingoBoard ( loginId ) ;
4044 if ( bingoData . length == 0 ) {
41- const boardData : {
42- [ key : string ] : { value : string ; status : number ; selected : number } ;
43- } = { } ;
44- await createBingoBoard ( result . user_id , boardData ) ;
45+ let bingoBoard = shuffleArray ( defafultBingoBoard ) ;
46+ await createBingoBoard ( result . user_id , bingoBoard ) ;
4547 }
4648
4749 window . location . href = "/bingo" ;
You can’t perform that action at this time.
0 commit comments