From 0642d1df723b42cabfb814077ffe233bdb26a090 Mon Sep 17 00:00:00 2001 From: Rushikesh-Sonawane99 Date: Fri, 5 Jul 2024 15:33:57 +0530 Subject: [PATCH] Issue #000 chore: Added pascalcase for diplaying state and district name --- src/pages/centers/[cohortId].tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/centers/[cohortId].tsx b/src/pages/centers/[cohortId].tsx index 975285f0..86c0c4da 100644 --- a/src/pages/centers/[cohortId].tsx +++ b/src/pages/centers/[cohortId].tsx @@ -17,6 +17,7 @@ import { serverSideTranslations } from 'next-i18next/serverSideTranslations'; import { useRouter } from 'next/router'; import { useTheme } from '@mui/material/styles'; import { useTranslation } from 'next-i18next'; +import { toPascalCase } from '@/utils/Helper'; const TeachingCenterDetails = () => { const [value, setValue] = React.useState(1); @@ -46,7 +47,7 @@ const TeachingCenterDetails = () => { (item: CustomField) => item.label === 'State' ); - cohortData.address = `${district?.value}, ${state?.value}` || ''; + cohortData.address = `${toPascalCase(district?.value)}, ${toPascalCase(state?.value)}` || ''; } setCohortDetails(cohortData); }