Skip to content

Commit

Permalink
Issue #PS-1619 chore: Fixed language constant issue in learner mini-p…
Browse files Browse the repository at this point in the history
…rofile
  • Loading branch information
Rushikesh-Sonawane99 committed Aug 16, 2024
1 parent 616c63a commit 32e687c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/LearnerModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import PropTypes from 'prop-types';
import { useRouter } from 'next/router';
import { useTheme } from '@mui/material/styles';
import { useTranslation } from 'next-i18next';
import { toPascalCase } from '@/utils/Helper';
import { toPascalCase, translateString } from '@/utils/Helper';
import { modalStyles } from '@/styles/modalStyles';

// CSS variables
Expand Down Expand Up @@ -198,7 +198,7 @@ const LearnerModal = ({
{Array.isArray(item.displayValue)
? toPascalCase(item.displayValue.join(', '))
: item?.displayValue
? toPascalCase(item.displayValue)
? translateString(t, item.displayValue)
: '-'}
</Typography>
</Grid>
Expand Down

0 comments on commit 32e687c

Please sign in to comment.