Skip to content

Commit

Permalink
Issue #PS-000 feat: Added subjects
Browse files Browse the repository at this point in the history
  • Loading branch information
itsvick committed Aug 16, 2024
1 parent adc15d6 commit 64b7c47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/PlannedSession.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,13 @@ const PlannedSession: React.FC<PlannedModalProps> = ({
const subjectTeach = response?.fields
.filter((field: any) => field?.label === 'SUBJECTS_I_TEACH')
.flatMap((field: any) =>
field?.options?.map((option: any) => option?.label)
field?.options?.map((option: any) => t(`FORM.${option?.label}`))
);

const mainSubjects = response?.fields
.filter((field: any) => field?.label === 'MY_MAIN_SUBJECTS')
.flatMap((field: any) =>
field?.options?.map((option: any) => option?.label)
field?.options?.map((option: any) => t(`FORM.${option?.label}`))
);

const combinedSubjects = Array.from(
Expand Down

0 comments on commit 64b7c47

Please sign in to comment.