fix: Revert Date to ISO string conversions for local state objects (they expect Date not string)

This commit is contained in:
dahoud
2025-10-13 16:30:54 +00:00
parent bb19e2af0d
commit f22bfe5760
8 changed files with 10 additions and 10 deletions

View File

@@ -535,7 +535,7 @@ RECOMMANDATIONS:
<Calendar
id="newValidityDate"
value={renewData.newValidityDate}
onChange={(e) => setRenewData(prev => ({ ...prev, newValidityDate: e.value?.toISOString() || new Date().toISOString() }))}
onChange={(e) => setRenewData(prev => ({ ...prev, newValidityDate: e.value || new Date() }))}
dateFormat="dd/mm/yy"
showIcon
minDate={new Date()}