Skip to content

Commit

Permalink
Merge pull request #228 from suvarnakale/release-1.0.0
Browse files Browse the repository at this point in the history
Issue #1907 chore: subject label changes
  • Loading branch information
itsvick authored Sep 5, 2024
2 parents d410479 + 1589e77 commit ac5d625
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/PlannedSession.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,13 +265,17 @@ 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) => t(`FORM.${option?.label}`))
field?.options?.map((option: any) =>
t(`FORM.${option?.label.toUpperCase()}`)
)
);

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

const combinedSubjects = Array.from(
Expand Down

0 comments on commit ac5d625

Please sign in to comment.