Skip to content

Commit

Permalink
fix : fix replay err
Browse files Browse the repository at this point in the history
  • Loading branch information
flowersayo committed May 19, 2023
1 parent 6472fe0 commit a01f7ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
6 changes: 2 additions & 4 deletions client/src/pages/GameResultPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,8 @@ export default function GameResultPage() {
end.setSeconds(end.getSeconds() + RESULT_TIME); // 종료되는 시간
var left = parseInt((end.getTime() - current.getTime()) / 1000);

if (left < 0) {
// 남은 시간이 지난경우
} else {
setCount(left); //타이머 초깃값 세팅
if (left >= 0) {
setCount(left);
}
};

Expand Down
8 changes: 2 additions & 6 deletions client/src/pages/MobileGameResultScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,8 @@ export default function MobileGameResultScreen() {
end.setSeconds(end.getSeconds() + RESULT_TIME); // 종료되는 시간
var left = parseInt((end.getTime() - current.getTime()) / 1000);

if (left < 0) {
// 남은 시간이 지난경우
alert(Language[mode].already_end);
navigate(`/rooms`);
} else {
setCount(left); //타이머 초깃값 세팅
if (left >= 0) {
setCount(left);
}
};

Expand Down

0 comments on commit a01f7ff

Please sign in to comment.