Skip to content

Commit

Permalink
Issue #000 chore: Added pascalcase for diplaying state and district name
Browse files Browse the repository at this point in the history
  • Loading branch information
Rushikesh-Sonawane99 committed Jul 5, 2024
1 parent 36c1859 commit 0642d1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/centers/[cohortId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 0642d1d

Please sign in to comment.