From da2631822f902094e691143302d6fc6b68e1cf56 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Wed, 24 May 2023 20:18:00 -0600 Subject: Añade lógica de carrito MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/product.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/models/product.ts') diff --git a/src/models/product.ts b/src/models/product.ts index b375537..c3323e0 100644 --- a/src/models/product.ts +++ b/src/models/product.ts @@ -5,7 +5,7 @@ export interface Product { unitary_price: number; bulk_price: number; available_quantity: number; - company_name: string; + quantity: number; } export function mapProduct(data: any) { @@ -19,7 +19,7 @@ export function mapProduct(data: any) { unitary_price: data.attributes.unitary_price, bulk_price: data.attributes.bulk_price, available_quantity: data.attributes.available_quantity, - company_name: data.attributes.company.name + quantity: data.attributes.quantity }; return product; -- cgit v1.2.3