From 64b7c474d70ee14774db2033380cafbecb98766c Mon Sep 17 00:00:00 2001 From: vivek kasture Date: Fri, 16 Aug 2024 15:42:05 +0530 Subject: [PATCH] Issue #PS-000 feat: Added subjects --- src/components/PlannedSession.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/PlannedSession.tsx b/src/components/PlannedSession.tsx index 7efc12b0..55b346c1 100644 --- a/src/components/PlannedSession.tsx +++ b/src/components/PlannedSession.tsx @@ -178,13 +178,13 @@ const PlannedSession: React.FC = ({ 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(