Fix de l'API d'invoice pour pouvoir avoir l'info des produits.

This commit is contained in:
Victor Turgeon
2022-11-07 22:41:21 -05:00
parent 13310f6cd0
commit a3537c0a0f
7 changed files with 1467 additions and 36 deletions

View File

@@ -12,8 +12,14 @@ const MyInvoices = () => {
mode: 'cors',
credentials: 'include'
}).then(async (response) => {
var json = await response.json();
setInvoices(json);
if (response.ok) {
var json = await response.json();
console.log(json);
setInvoices(json);
}
else{
console.log("Erreur lors de la requête des invoices");
}
});
}, []);