Retiré des console.log() unsafes
This commit is contained in:
@@ -112,14 +112,12 @@ const ReviewInvoice = () => {
|
||||
}
|
||||
|
||||
const handleConfirmer = async () => {
|
||||
console.log(thisInvoice);
|
||||
|
||||
// let formData = new FormData();
|
||||
// Object.keys(thisInvoice).map((k) => {
|
||||
// formData.set(k, thisInvoice[k]);
|
||||
// });
|
||||
|
||||
// console.log(formData);
|
||||
const json = JSON.stringify(thisInvoice);
|
||||
|
||||
const response = await fetch(`https://localhost:7292/api/Invoice`, {
|
||||
@@ -132,8 +130,6 @@ const ReviewInvoice = () => {
|
||||
},
|
||||
body: json
|
||||
})
|
||||
console.log(json);
|
||||
console.log(await response.json());
|
||||
if (response.ok) {
|
||||
mySwal.fire({
|
||||
title: 'Commande envoyée avec succès!',
|
||||
|
Reference in New Issue
Block a user