From e299491fe1280ba32269a11eb62be5f304b293a2 Mon Sep 17 00:00:00 2001 From: halang Date: Sat, 24 Aug 2024 12:46:10 +0900 Subject: [PATCH] =?UTF-8?q?=ED=83=80=EC=9D=B4=EB=A8=B8=20=ED=85=8C?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=EC=9A=A9=EC=9C=BC=EB=A1=9C=20=EB=B9=A8?= =?UTF-8?q?=EB=A6=AC=20=EB=8F=8C=EC=95=84=EA=B0=80=EB=8D=98=EA=B1=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20(#52)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/shared/hooks/use-timer.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/renderer/shared/hooks/use-timer.ts b/src/renderer/shared/hooks/use-timer.ts index 4e2ead6..079f4d7 100644 --- a/src/renderer/shared/hooks/use-timer.ts +++ b/src/renderer/shared/hooks/use-timer.ts @@ -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);