diff --git a/packages/client/src/pages/game/index.tsx b/packages/client/src/pages/game/index.tsx index 31386b29..3c528ffb 100644 --- a/packages/client/src/pages/game/index.tsx +++ b/packages/client/src/pages/game/index.tsx @@ -171,7 +171,7 @@ const Game = () => { } else if (curPlayer && curPlayer.state == 1 && percentage == 100 && !userInfoVisible) { setUserInfoVisible(true); } else { - if (percentage == 100) { + if (percentage == 100 && curPlayer && curPlayer.addr) { curPlayer.seasonOreBalance = PlayerSeasonData.filter((item) => item.addr.toLocaleLowerCase() == curPlayer.addr.toLocaleLowerCase())[0]?.oreBalance console.log(curPlayer) }