From e1fa3f9fe5d8af35674e31b97dc1fe2dbfbe3c14 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 15 May 2026 13:49:11 -0400 Subject: [PATCH] fix SupportedCurrency --- .../src/app/(dashboard)/dashboard/contracts/[id]/page.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/dashboard/src/app/(dashboard)/dashboard/contracts/[id]/page.tsx b/apps/dashboard/src/app/(dashboard)/dashboard/contracts/[id]/page.tsx index 272dc08..5112e35 100644 --- a/apps/dashboard/src/app/(dashboard)/dashboard/contracts/[id]/page.tsx +++ b/apps/dashboard/src/app/(dashboard)/dashboard/contracts/[id]/page.tsx @@ -4,7 +4,7 @@ import { useEffect, useMemo, useState } from 'react' import Image from 'next/image' import Link from 'next/link' import { useParams } from 'next/navigation' -import { formatCurrency } from '@rentaldrivego/types' +import { formatCurrency, type SupportedCurrency } from '@rentaldrivego/types' import { apiFetch } from '@/lib/api' import { useDashboardI18n } from '@/components/I18nProvider' import VehicleConditionSheet from '@/components/reservations/VehicleConditionSheet' @@ -120,7 +120,7 @@ type ContractPayload = { signatureRequired: boolean } invoice: { - currency: string + currency: SupportedCurrency lineItems: Array<{ description: string qty: number @@ -137,7 +137,7 @@ type ContractPayload = { payments: Array<{ id: string amount: number - currency: string + currency: SupportedCurrency type: string status: string provider: string