Skip to content

Commit

Permalink
improve format amount to display (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
pivilartisant authored Jun 7, 2024
1 parent 0edc934 commit 544459c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/util/parseAmount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ export function roundDecimalPartToOneSignificantDigit(
}

export function formatAmountToDisplay(
amount: string,
tokenDecimal: number,
amount: string | undefined,
tokenDecimal: number | undefined,
): FormattedAmount {
if (!tokenDecimal || !amount) {
return {
Expand Down

0 comments on commit 544459c

Please sign in to comment.