Skip to content

Commit

Permalink
Update zero value for BigInt
Browse files Browse the repository at this point in the history
Co-authored-by: Rafał Czajkowski <[email protected]>
  • Loading branch information
kkosiorowska and r-czajkowski authored Dec 14, 2023
1 parent 4cd2ef6 commit 8e9d87e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dapp/src/utils/numbers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const formatTokenAmount = (
) => {
const fixedPoint = BigInt(amount)

if (fixedPoint === BigInt(0)) {
if (fixedPoint === 0n) {
return `0.${"0".repeat(desiredDecimals)}`
}

Expand Down

0 comments on commit 8e9d87e

Please sign in to comment.