Retiré des console.log() unsafes
This commit is contained in:
@@ -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}`,
|
||||
|
||||
Reference in New Issue
Block a user