Skip to content

Commit

Permalink
Merge pull request #520 from interlay/revert-514-tom/percentage-utili…
Browse files Browse the repository at this point in the history
…ty-bug

Revert "fix: percentage utility"
  • Loading branch information
peterslany authored Sep 19, 2022
2 parents e3632ce + 766c098 commit e6266d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ const formatPercentage = (
}
): string => {
const { format } = new Intl.NumberFormat(undefined, {
style: 'decimal',
style: 'percent',
maximumFractionDigits: options?.maximumFractionDigits ?? 2,
minimumFractionDigits: options?.minimumFractionDigits ?? 2
});

return `${format(percentage)}%`;
return format(percentage);
};

function displayMonetaryAmount(amount: MonetaryAmount<CurrencyExt> | undefined, defaultValue = '0.00'): string {
Expand Down

2 comments on commit e6266d4

@vercel
Copy link

@vercel vercel bot commented on e6266d4 Sep 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on e6266d4 Sep 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.