Skip to content

Commit

Permalink
타이머 테스트용으로 빨리 돌아가던걸 수정 (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
haryung-lee authored Aug 24, 2024
1 parent 90a4db6 commit e299491
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/renderer/shared/hooks/use-timer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ export const useTimer = (initialTime: number, endTime?: number, handler?: THandl

const now = Date.now();
const elapsedTime = now - startTimeRef.current + accumulatedTimeRef.current;
// @FIX: 테스트 용으로 1000 곱해줌
const newTime = initialTime - elapsedTime * 1000;
const newTime = initialTime - elapsedTime;

setTime(newTime);

Expand Down

0 comments on commit e299491

Please sign in to comment.