Skip to content

Commit

Permalink
fix: say started instead of starts when event is currently ongoing
Browse files Browse the repository at this point in the history
  • Loading branch information
CostasAK committed Jul 25, 2024
1 parent e95a335 commit 295283b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/timer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export function Timer({
timestamp={nextStart}
now={now}
conditions="future"
prefix={end ? "Starts" : ""}
prefix={end ? (isOngoing ? "Started" : "Starts") : ""}
/>
<TimerCountdown
timestamp={nextEnd}
Expand Down Expand Up @@ -160,7 +160,7 @@ export function Timer({
timestamp={nextStart}
now={now}
conditions="future"
prefix={end ? "Starts" : ""}
prefix={end ? (isOngoing ? "Started" : "Starts") : ""}
/>
<br />
<TimerCountdown timestamp={nextEnd} now={now} prefix="Ends" />
Expand Down

0 comments on commit 295283b

Please sign in to comment.