Skip to content

Commit

Permalink
Fix commas
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Dec 18, 2023
1 parent 4ad6531 commit 464239c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions staking/app/pythBalance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ export class PythBalance {
.padStart(PYTH_DECIMALS + 1, "0");

const integerPart = padded.slice(0, padded.length - PYTH_DECIMALS);
return commas
? addCommas(integerPart)
: integerPart +
("." + padded.slice(padded.length - PYTH_DECIMALS)).replace(
TRAILING_ZEROS,
""
);
return (
(commas ? addCommas(integerPart) : integerPart) +
("." + padded.slice(padded.length - PYTH_DECIMALS)).replace(
TRAILING_ZEROS,
""
)
);
}

toBN() {
Expand Down

0 comments on commit 464239c

Please sign in to comment.