Skip to content

Commit

Permalink
put padEnd back
Browse files Browse the repository at this point in the history
  • Loading branch information
artursapek committed Sep 13, 2024
1 parent 7010e33 commit a245ce8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/base/src/utils/amount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ export function display(amount: Amount, precision?: number): string {
if (partial[partial.length - 1] !== "0") break;
partial = partial.substring(0, partial.length - 1);
}
partial = partial.padEnd(precision, "0");
} else {
// If no specific precision is given, just trim trailing zeroes
// and return all significant digits.
Expand Down

0 comments on commit a245ce8

Please sign in to comment.