fix(dashboard): format currency sign (#8936)

**What**
- change `formatCurrency` admin util to show sign only for negative numbers

---

FIXES CC-335
This commit is contained in:
Frane Polić
2024-09-02 13:57:45 +02:00
committed by GitHub
parent 56ceeeb4c7
commit b5ec6c9003
2 changed files with 2 additions and 2 deletions
@@ -2,6 +2,6 @@ export const formatCurrency = (amount: number, currency: string) => {
return new Intl.NumberFormat("en-US", {
style: "currency",
currency,
signDisplay: "always",
signDisplay: "auto",
}).format(amount)
}