Update ReviewInvoice.js
This commit is contained in:
parent
786ba6c28c
commit
d325c91d08
@ -127,11 +127,13 @@ const ReviewInvoice = () => {
|
|||||||
credentials: 'include',
|
credentials: 'include',
|
||||||
mode: 'cors',
|
mode: 'cors',
|
||||||
headers: {
|
headers: {
|
||||||
'accept': 'application/json',
|
'Accept': 'text/json',
|
||||||
|
'Content-Type': 'text/json'
|
||||||
},
|
},
|
||||||
body: json
|
body: json
|
||||||
})
|
})
|
||||||
console.log(json);
|
console.log(json);
|
||||||
|
console.log(await response.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!',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user