Spaces:
Running
Running
Commit ·
962b9ba
1
Parent(s): e6021a3
fixed issue
Browse files
frontend/src/pages/HoldingsTracker.tsx
CHANGED
|
@@ -130,7 +130,6 @@ export default function HoldingsTracker() {
|
|
| 130 |
}, [tab]);
|
| 131 |
|
| 132 |
const fmtC = (n: number, cur: string = 'USD') => formatCurrency(n, cur);
|
| 133 |
-
const fmt = (n: number) => n?.toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 }) ?? '—';
|
| 134 |
const fmtPct = (n: number) => `${n >= 0 ? '+' : ''}${n?.toFixed(2)}%`;
|
| 135 |
|
| 136 |
// Group holdings by market
|
|
|
|
| 130 |
}, [tab]);
|
| 131 |
|
| 132 |
const fmtC = (n: number, cur: string = 'USD') => formatCurrency(n, cur);
|
|
|
|
| 133 |
const fmtPct = (n: number) => `${n >= 0 ? '+' : ''}${n?.toFixed(2)}%`;
|
| 134 |
|
| 135 |
// Group holdings by market
|