react-version #1

Merged
memartel_loc merged 290 commits from react-version into main 2023-11-04 09:48:15 -04:00
Showing only changes of commit 786ba6c28c - Show all commits

View File

@ -132,7 +132,6 @@ const ReviewInvoice = () => {
body: json
})
console.log(json);
if (response.ok) {
mySwal.fire({
title: 'Commande envoyée avec succès!',
@ -140,10 +139,17 @@ const ReviewInvoice = () => {
icon: "success"
})
cart.items = [];
navigate('./myinvoices');
navigate('./Morceaux');
}
else
else {
console.log("Erreur de creation la commande #" + thisInvoice.id);
mySwal.fire({
title: 'Erreur!',
timer: 2000,
icon: "error"
})
}
}
return (