Skip to content

Commit

Permalink
feat(fe): longer contest timer toast (#2073)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimin9038 authored Sep 9, 2024
1 parent a148e7c commit 093492b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/frontend/components/ContestStatusTimeDiff.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ export default function ContestStatusTimeDiff({

if (inContestEditor) {
if (days === 0 && hours === 0 && minutes === 5 && seconds === 0) {
toast.error('Contest ends in 5 minutes.')
toast.error('Contest ends in 5 minutes.', { duration: 10000 })
}
if (days === 0 && hours === 0 && minutes === 1 && seconds === 0) {
toast.error('Contest ends in 1 minute.')
toast.error('Contest ends in 1 minute.', { duration: 10000 })
}
}

Expand Down

0 comments on commit 093492b

Please sign in to comment.