fix: Convert Date to string for dateEcheance in convert page
This commit is contained in:
@@ -359,7 +359,7 @@ const ConvertDevisPage = () => {
|
||||
<Calendar
|
||||
id="dateEcheance"
|
||||
value={facture.dateEcheance ? new Date(facture.dateEcheance) : new Date()}
|
||||
onChange={(e) => 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"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user