Skip to content

Commit

Permalink
feat: 멈췄던 상태면 시작 버리기
Browse files Browse the repository at this point in the history
  • Loading branch information
sumi-0011 committed Feb 1, 2024
1 parent 8d1aba2 commit c11206c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/utils/storage/progressMission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ const getProgressMissionTimeToStack = (missionId: string) => {
}

const currentTime = new Date().getTime();

if (timeStackData[timeStackData.length - 1].status === 'stop') {
stopTime += currentTime - timeStackData[timeStackData.length - 1].time;
}

const progressTime = currentTime - timeStackData[0].time - stopTime;

return progressTime;
Expand Down

0 comments on commit c11206c

Please sign in to comment.