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