diff options
author | HombreLaser <sebastian-440@live.com> | 2023-05-24 20:18:00 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-05-24 20:18:00 -0600 |
commit | da2631822f902094e691143302d6fc6b68e1cf56 (patch) | |
tree | 68b893c04233f779f5a65151ea21d673b6f7a8fc /src/models | |
parent | 21508a3514500f8f38ddaa8bef7a9cd420d76628 (diff) |
Añade lógica de carrito
Diffstat (limited to 'src/models')
-rw-r--r-- | src/models/product.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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; |