Skip to content

Commit

Permalink
fix countdown
Browse files Browse the repository at this point in the history
  • Loading branch information
merklejerk committed Jun 20, 2024
1 parent 2c1b115 commit c06d94f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/contest-progress.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@
return `${Math.round(dt / ONE_HOUR_MS)} hours`;
}
if (dt > ONE_HOUR_MS) {
return `${Math.round(dt / ONE_HOUR_MS)} hour`;
return `1 hour`;
}
if (dt > ONE_MINUTE_MS * 2) {
return `${Math.round(dt / ONE_HOUR_MS)} minutes`;
return `${Math.round(dt / ONE_MINUTE_MS)} minutes`;
}
return `a few seconds`;
}
Expand Down

0 comments on commit c06d94f

Please sign in to comment.