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(() => {