Skip to content

Commit

Permalink
Amount: default to 2 digits when percentage is true
Browse files Browse the repository at this point in the history
  • Loading branch information
bpierre committed Jan 29, 2025
1 parent 95ea440 commit f2eed7b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/app/src/comps/Amount/Amount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ export function Amount({
if (percentage && !suffix) {
suffix = "%";
}
if (percentage && !format) {
format = "pct2z";
}

const showFallback = value === null || value === undefined;

Expand Down

0 comments on commit f2eed7b

Please sign in to comment.