Retiré des console.log() unsafes

This commit is contained in:
Victor Turgeon
2022-11-22 12:13:19 -05:00
parent b6eb64ef75
commit 6120bf544a
5 changed files with 0 additions and 22 deletions

View File

@@ -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!',