From e66c2834ba476ba0daacf61a2b62e442798f8a97 Mon Sep 17 00:00:00 2001 From: Dong-Ha Kim Date: Tue, 31 Oct 2023 15:55:45 +0100 Subject: [PATCH] fixup --- src/views/DepositStatus/hooks/useElapsedSeconds.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/DepositStatus/hooks/useElapsedSeconds.ts b/src/views/DepositStatus/hooks/useElapsedSeconds.ts index 8b3495c4f..8bac8db7c 100644 --- a/src/views/DepositStatus/hooks/useElapsedSeconds.ts +++ b/src/views/DepositStatus/hooks/useElapsedSeconds.ts @@ -12,7 +12,7 @@ export function useElapsedSeconds( let interval: NodeJS.Timeout; if (startDateTimestampInSeconds && endDateTimestampInSeconds) { setElapsedSeconds( - endDateTimestampInSeconds - startDateTimestampInSeconds + Math.min(endDateTimestampInSeconds - startDateTimestampInSeconds, 0) ); } else if (startDateTimestampInSeconds) { interval = setInterval(() => {