Fix de l'API d'invoice pour pouvoir avoir l'info des produits.
This commit is contained in:
		@@ -2,7 +2,8 @@ const InvoiceItem = (invoice) => {
 | 
			
		||||
 | 
			
		||||
    return (
 | 
			
		||||
        <>
 | 
			
		||||
            Invoice Item
 | 
			
		||||
            <div>
 | 
			
		||||
            </div>
 | 
			
		||||
        </>
 | 
			
		||||
    );
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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");
 | 
			
		||||
            }
 | 
			
		||||
        });
 | 
			
		||||
    }, []);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user