Skip to content

Commit

Permalink
Display correct registrationDeadline in event editor
Browse files Browse the repository at this point in the history
  • Loading branch information
norbye committed Sep 16, 2024
1 parent a034480 commit ea2734b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import Attendance from 'app/components/UserAttendance/Attendance';
import {
containsAllergier,
eventStatusTypes,
registrationCloseTime,
tooLow,
} from 'app/routes/events/utils';
import { spyValues } from 'app/utils/formSpyUtils';
Expand Down Expand Up @@ -153,7 +154,7 @@ const NormalOrInfiniteStatusType: React.FC<NormalOrInfiniteStatusTypeProps> = ({
className={styles.formField}
/>
<p className={styles.registrationDeadlineHours}>
Stenger <FormatTime time={moment(values.registrationDeadline)} />
Stenger <FormatTime time={registrationCloseTime(values)} />
</p>
</Flex>
<Flex column className={styles.editorSectionColumn}>
Expand Down

0 comments on commit ea2734b

Please sign in to comment.