fix: Revert Date to ISO string conversions for local state objects (they expect Date not string)
This commit is contained in:
@@ -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()}
|
||||
|
||||
Reference in New Issue
Block a user