Skip to content

Commit

Permalink
fix: fraction digits
Browse files Browse the repository at this point in the history
  • Loading branch information
nhestrompia committed Aug 28, 2023
1 parent 3026e87 commit 4bbf258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const isUndefined = (maybeObject: any): maybeObject is undefined => typeo

export const formatUnitsWei = (value: bigint) => formatUnits(value, 18);

export const formatPNK = (value: bigint, fractionDigits = 4) =>
export const formatPNK = (value: bigint, fractionDigits = 0) =>
commify(Number(formatUnitsWei(value)).toFixed(fractionDigits));

export const formatETH = (value: bigint, fractionDigits = 4) =>
Expand Down

0 comments on commit 4bbf258

Please sign in to comment.