Skip to content

Commit

Permalink
VKT(Frontend): Assign enrollment appointment to exam event based on e…
Browse files Browse the repository at this point in the history
…xam date [deploy]
  • Loading branch information
pkoivisto committed Dec 5, 2024
1 parent 370c5e2 commit e7f47a2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
Variant,
} from 'shared/enums';
import { useDialog } from 'shared/hooks';
import { InputFieldUtils } from 'shared/utils';
import { DateUtils, InputFieldUtils } from 'shared/utils';

import { EnrollmentHistoryModal } from 'components/clerkEnrollment/appointment/EnrollmentHistoryModal';
import { EnrollmentSkillsListTable } from 'components/clerkEnrollment/appointment/EnrollmentSkillsListTable';
Expand Down Expand Up @@ -410,9 +410,11 @@ export const ClerkEnrollmentAppointmentDetailsFields = ({
const isCompleted =
EnrollmentAppointmentStatus.COMPLETED === enrollment.status;

// TODO If examiner has multiple exams on a given date,
// label should also include examTime
const examEventToOption = (examEvent: ExaminerExamEvent) => ({
value: examEvent.id.toString(),
label: examEvent.location ?? '',
label: DateUtils.formatOptionalDate(examEvent.date),
});

const onSendAuthLink = () => {
Expand Down

0 comments on commit e7f47a2

Please sign in to comment.