summaryrefslogtreecommitdiff
path: root/src/models/product.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/models/product.ts')
-rw-r--r--src/models/product.ts4
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;