From bb19e2af0dd1ddece213a27bd770b64ee7903cd4 Mon Sep 17 00:00:00 2001 From: dahoud Date: Mon, 13 Oct 2025 15:59:04 +0000 Subject: [PATCH] fix: Revert Date conversion for chantierData local state (expects Date not string) --- app/(main)/devis/acceptes/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/(main)/devis/acceptes/page.tsx b/app/(main)/devis/acceptes/page.tsx index 8c2032d..919192f 100644 --- a/app/(main)/devis/acceptes/page.tsx +++ b/app/(main)/devis/acceptes/page.tsx @@ -515,7 +515,7 @@ RECOMMANDATIONS: setChantierData(prev => ({ ...prev, dateDebut: e.value?.toISOString() || new Date().toISOString() }))} + onChange={(e) => setChantierData(prev => ({ ...prev, dateDebut: e.value || new Date() }))} dateFormat="dd/mm/yy" showIcon /> @@ -526,7 +526,7 @@ RECOMMANDATIONS: setChantierData(prev => ({ ...prev, dateFinPrevue: e.value?.toISOString() || new Date().toISOString() }))} + onChange={(e) => setChantierData(prev => ({ ...prev, dateFinPrevue: e.value || new Date() }))} dateFormat="dd/mm/yy" showIcon minDate={chantierData.dateDebut}