diff --git a/apps/edr-freight-web/portal/src/pages/MyPortalPage.tsx b/apps/edr-freight-web/portal/src/pages/MyPortalPage.tsx index 1bd7f12df..a6e34b7ab 100644 --- a/apps/edr-freight-web/portal/src/pages/MyPortalPage.tsx +++ b/apps/edr-freight-web/portal/src/pages/MyPortalPage.tsx @@ -27,7 +27,7 @@ import { Link, useNavigate } from "react-router-dom"; import useAuth from "@/hooks/useAuth"; import { getMyInvoices } from "@/lib/currentCustomer"; -import type { InvoiceStatus } from "@/pages/billing/invoices.mock"; +import type { Currency, InvoiceStatus } from "@/pages/billing/invoices.mock"; import { formatCurrency } from "@/pages/billing/invoices.mock"; import { api } from "@/services/api"; @@ -505,7 +505,10 @@ export default function MyPortalPage() { label="Spend YTD" value={ dashboard - ? formatCurrency(dashboard.spendYtd, dashboard.spendCurrency) + ? formatCurrency( + dashboard.spendYtd, + dashboard.spendCurrency as Currency, + ) : "—" } delta={ @@ -696,7 +699,7 @@ export default function MyPortalPage() { {formatCurrency( dashboard?.freightVolume.totalValue ?? 0, - dashboard?.freightVolume.currency ?? "ETB", + (dashboard?.freightVolume.currency ?? "ETB") as Currency, )}