Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
dohaki committed Oct 31, 2023
1 parent befae75 commit e66c283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/DepositStatus/hooks/useElapsedSeconds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit e66c283

Please sign in to comment.