Skip to content

Commit

Permalink
Add one second to registration countdown button
Browse files Browse the repository at this point in the history
It looks a bit weird when it shows 0 seconds left
  • Loading branch information
eikhr committed Sep 23, 2024
1 parent 0d35a86 commit a0f7908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/events/components/JoinEventForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ const JoinEventForm = ({ title, event, registration }: Props) => {

{event.activationTime && registrationOpensIn && (
<Button disabled={disabledButton}>
{`Åpner om ${moment(registrationOpensIn.asMilliseconds()).format('mm:ss')}`}
{`Åpner om ${moment(registrationOpensIn.add(1, 'second').asMilliseconds()).format('mm:ss')}`}
</Button>
)}

Expand Down

0 comments on commit a0f7908

Please sign in to comment.