Skip to content

Commit

Permalink
fix: handler review section bugs (HL-1119) (#2769)
Browse files Browse the repository at this point in the history
* fix: working hours review had wrong i18n key for value

* fix: isLivingInHelsinki render used another prop's value
  • Loading branch information
sirtawast authored Jan 30, 2024
1 parent d98dc72 commit f481829
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ const EmployeeView: React.FC<ApplicationReviewViewProps> = ({
</$ViewFieldBold>
<$ViewField>
{t(
`common:utility.${
data.associationImmediateManagerCheck ? 'yes' : 'no'
}`
`common:utility.${data.employee?.isLivingInHelsinki ? 'yes' : 'no'}`
)}
</$ViewField>
</$GridCell>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const EmploymentView: React.FC<ApplicationReviewViewProps> = ({
</$ViewFieldBold>
<$ViewField>
{parseFloat(data.employee?.workingHours).toLocaleString('fi-FI')}{' '}
{t(`${translationsBase}.fields.workingHours`)}
{t(`${translationsBase}.fields.workingHoursText`)}
</$ViewField>
</$GridCell>
<$GridCell $colSpan={6} $colStart={1}>
Expand Down

0 comments on commit f481829

Please sign in to comment.