diff --git a/staking/app/pythBalance.ts b/staking/app/pythBalance.ts index a767c026..2952f0b0 100644 --- a/staking/app/pythBalance.ts +++ b/staking/app/pythBalance.ts @@ -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() {