patch to fix gameData is undefined
This commit is contained in:
parent
c4192f2e33
commit
a3420c1152
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ const Game = ({ gameData = {}, gameRecord = [] } = {}) => {
|
|||
Game({ gameData }).initGame()
|
||||
);
|
||||
// ? why is this being wrapped?
|
||||
if (gameData.gameData.winner) {
|
||||
if (gameData?.gameData?.winner) {
|
||||
const { winner, score } = gameData.gameData;
|
||||
return game.manualEnd({ winner, score });
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue