From f8796b0831ed7ac947a0e823b4fb147452f96430 Mon Sep 17 00:00:00 2001 From: dahoud Date: Mon, 13 Oct 2025 08:30:49 +0000 Subject: [PATCH] fix: Convert Date to string for dateEcheance in convert page --- app/(main)/devis/[id]/convert/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/(main)/devis/[id]/convert/page.tsx b/app/(main)/devis/[id]/convert/page.tsx index 0df6253..bcb2250 100644 --- a/app/(main)/devis/[id]/convert/page.tsx +++ b/app/(main)/devis/[id]/convert/page.tsx @@ -359,7 +359,7 @@ const ConvertDevisPage = () => { setFacture(prev => ({ ...prev, dateEcheance: e.value || new Date() }))} + onChange={(e) => setFacture(prev => ({ ...prev, dateEcheance: e.value?.toISOString() || new Date().toISOString() }))} className="w-full" dateFormat="dd/mm/yy" />