Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
fix: Remove decimals for the exact 0 (zero) amount
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandomg committed Apr 25, 2020
1 parent de35e6b commit d9e8f80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logic/tokens/utils/formatAmount.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const formatAmount = (number: string | number) => {
let numberFloat = parseFloat(number)

if (numberFloat === 0) {
numberFloat = '0.000'
numberFloat = '0'
} else if (numberFloat < 0.001) {
numberFloat = '< 0.001'
} else if (numberFloat < 1000) {
Expand Down

0 comments on commit d9e8f80

Please sign in to comment.