mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 09:30:59 +00:00
fix: type error
This commit is contained in:
@@ -27,7 +27,7 @@ import { Link, useNavigate } from "react-router-dom";
|
|||||||
|
|
||||||
import useAuth from "@/hooks/useAuth";
|
import useAuth from "@/hooks/useAuth";
|
||||||
import { getMyInvoices } from "@/lib/currentCustomer";
|
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 { formatCurrency } from "@/pages/billing/invoices.mock";
|
||||||
import { api } from "@/services/api";
|
import { api } from "@/services/api";
|
||||||
|
|
||||||
@@ -505,7 +505,10 @@ export default function MyPortalPage() {
|
|||||||
label="Spend YTD"
|
label="Spend YTD"
|
||||||
value={
|
value={
|
||||||
dashboard
|
dashboard
|
||||||
? formatCurrency(dashboard.spendYtd, dashboard.spendCurrency)
|
? formatCurrency(
|
||||||
|
dashboard.spendYtd,
|
||||||
|
dashboard.spendCurrency as Currency,
|
||||||
|
)
|
||||||
: "—"
|
: "—"
|
||||||
}
|
}
|
||||||
delta={
|
delta={
|
||||||
@@ -696,7 +699,7 @@ export default function MyPortalPage() {
|
|||||||
<Text fz={13} c="edr-muted">
|
<Text fz={13} c="edr-muted">
|
||||||
{formatCurrency(
|
{formatCurrency(
|
||||||
dashboard?.freightVolume.totalValue ?? 0,
|
dashboard?.freightVolume.totalValue ?? 0,
|
||||||
dashboard?.freightVolume.currency ?? "ETB",
|
(dashboard?.freightVolume.currency ?? "ETB") as Currency,
|
||||||
)}
|
)}
|
||||||
</Text>
|
</Text>
|
||||||
<Text fz={12} fw={700} c="edr-green.7">
|
<Text fz={12} fw={700} c="edr-green.7">
|
||||||
|
|||||||
Reference in New Issue
Block a user