Skip to content

Commit

Permalink
Fix minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
MycroftKang committed Aug 20, 2024
1 parent fd62987 commit 0749080
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/suikaGame/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const SuikaGame = () => {
if (loadedUserInfo) {
gameResult?.send().then(() => {
if (score > Number(bestScore)) {
handleShowRankModal();
setIsShowRank(true);
}
});
} else if (!loadUserInfo && GameResult.isNewUser()) {
Expand All @@ -84,7 +84,7 @@ const SuikaGame = () => {
setLoadedUserInfo(true);
gameResult?.send().then(() => {
if (score > Number(bestScore)) {
handleShowRankModal();
setIsShowRank(true);
}
});
});
Expand Down Expand Up @@ -184,7 +184,7 @@ const SuikaGame = () => {

<Intro isVisible={!isStart} loadedUserInfo={loadedUserInfo} handleGameStart={handleGameStart} handleShowRankModal={handleShowRankModal} />
<GameOverModal isVisible={isGameOver} onClick={handleTryAgain} score={score} />
<LeaderBoardModal isVisible={isShowRank} loadUserInfo={loadUserInfo} bestScore={getBestScore()} onClick={handleCloseRankModal}></LeaderBoardModal>
<LeaderBoardModal isVisible={isShowRank} loadUserInfo={loadedUserInfo} bestScore={getBestScore()} onClick={handleCloseRankModal}></LeaderBoardModal>
</div>
)
}
Expand Down

0 comments on commit 0749080

Please sign in to comment.