Skip to content

Commit

Permalink
display percentage to 2 decimal like the amount
Browse files Browse the repository at this point in the history
  • Loading branch information
stepandel committed Jan 4, 2024
1 parent a8c9602 commit f725d71
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -38,7 +38,7 @@ function SubdelegationToRow({
const percent =
Number.isNaN(allowance) || allowance === 0
? 0
: Math.round((allowance / availableBalanceNumber) * 100_000) / 1000;
: Math.round((allowance / availableBalanceNumber) * 100_00) / 100;

return (
<div className={styles.sub_row}>
Expand Down

0 comments on commit f725d71

Please sign in to comment.