Skip to content

Commit

Permalink
Merge pull request #894 from DTS-STN/142541-add-0-in-summaries-new
Browse files Browse the repository at this point in the history
142541-Add 0$ in result summaries
  • Loading branch information
numbap authored Sep 25, 2023
2 parents b00c949 + 6153a92 commit ae515d6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Binary file not shown.
7 changes: 1 addition & 6 deletions components/ResultsPage/EstimatedTotalItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,7 @@ export const EstimatedTotalItem: React.VFC<{
return (
<li>
<strong>
{result.entitlement.result > 0
? numberToStringCurrency(
result.entitlement.result ?? 0,
tsln._language
)
: ''}
{numberToStringCurrency(result.entitlement.result ?? 0, tsln._language)}
</strong>

{displayBenefitName(heading, result.entitlement.result)}
Expand Down
1 change: 1 addition & 0 deletions i18n/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,4 +194,5 @@ export function numberToStringCurrency(
})
.replace('.00', '')
.replace(/,00\s/, '\xa0')
.replace(/\s/g, '');
}

0 comments on commit ae515d6

Please sign in to comment.