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

@@ -22,7 +22,6 @@ const Invoices = () => {
}).then(async (response) => {
if (response.ok) {
var json = await response.json();
console.log(json);
setInvoices(json);
}
else{
@@ -47,7 +46,6 @@ const Invoices = () => {
mode: 'cors',
credentials: 'include'
}).then(async (response) => {
console.log(response);
if (response.ok) {
const deletedId = await response.json();
setInvoices(invoices.filter((invoice) => invoice.id !== deletedId));
@@ -55,7 +53,6 @@ const Invoices = () => {
onShowAlert('Suppression de la commande avec succès!', 2000);
}
else {
console.log("test");
mySwal.fire({
title: `Erreur lors de la suppression de la commande...`,
text: `L'erreur: ${response}`,