From fb5c76fa03c26974dfc67c5a3f86f5598ef19f0d Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Wed, 20 Jul 2022 09:25:51 -0500 Subject: [PATCH] Fix item price in wide screens --- src/app/items/item-list/item-list.component.ts | 3 ++- src/app/viewer/viewer.component.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/items/item-list/item-list.component.ts b/src/app/items/item-list/item-list.component.ts index eacee04..f8904ec 100644 --- a/src/app/items/item-list/item-list.component.ts +++ b/src/app/items/item-list/item-list.component.ts @@ -23,7 +23,7 @@ import { ItemAddComponent } from '../item-add/item-add.component'; export class ItemListComponent implements OnInit{ - @Input() zecPrice: number = 1; + @Input() zecPrice: number; public items: Item[] = []; @@ -75,6 +75,7 @@ export class ItemListComponent implements OnInit{ this.items = items; }); }); + this.zecPrice = 1; } ngOnInit(){ diff --git a/src/app/viewer/viewer.component.html b/src/app/viewer/viewer.component.html index 7410e98..2c79259 100644 --- a/src/app/viewer/viewer.component.html +++ b/src/app/viewer/viewer.component.html @@ -34,7 +34,7 @@
- +