Skip to content

Commit

Permalink
export removeTrailingZeros fn
Browse files Browse the repository at this point in the history
  • Loading branch information
pivilartisant committed Jun 7, 2024
1 parent f5f51dd commit 0dd6ec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/util/parseAmount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface FormattedAmount {
amountFormattedFull: string;
}

function removeTrailingZeros(numStr: string): string {
export function removeTrailingZeros(numStr: string): string {
return numStr.replace(/\.?0+$/, '');
}

Expand Down

0 comments on commit 0dd6ec6

Please sign in to comment.