error message show invalide commande
This commit is contained in:
parent
d3bc94a62a
commit
786ba6c28c
@ -132,7 +132,6 @@ const ReviewInvoice = () => {
|
|||||||
body: json
|
body: json
|
||||||
})
|
})
|
||||||
console.log(json);
|
console.log(json);
|
||||||
|
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
mySwal.fire({
|
mySwal.fire({
|
||||||
title: 'Commande envoyée avec succès!',
|
title: 'Commande envoyée avec succès!',
|
||||||
@ -140,10 +139,17 @@ const ReviewInvoice = () => {
|
|||||||
icon: "success"
|
icon: "success"
|
||||||
})
|
})
|
||||||
cart.items = [];
|
cart.items = [];
|
||||||
navigate('./myinvoices');
|
navigate('./Morceaux');
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
console.log("Erreur de creation la commande #" + thisInvoice.id);
|
console.log("Erreur de creation la commande #" + thisInvoice.id);
|
||||||
|
mySwal.fire({
|
||||||
|
title: 'Erreur!',
|
||||||
|
timer: 2000,
|
||||||
|
icon: "error"
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user