error message show invalide commande
This commit is contained in:
parent
d3bc94a62a
commit
786ba6c28c
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user