Skip to content

Commit

Permalink
fix: fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TiyoSheng committed Dec 4, 2023
1 parent acdc563 commit 66659a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/src/pages/game/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 66659a3

Please sign in to comment.