Commit 2695e89a60b71e876856882e606fdbad56fce8f5
Exists in
master
Merge branch 'master' into 'master'
Master(efernandez) See merge request !115
Showing
2 changed files
Show diff stats
src/app/components/inicio/inicio.component.ts
... | ... | @@ -79,7 +79,7 @@ export class InicioComponent implements OnInit, AfterViewInit { |
79 | 79 | |
80 | 80 | if (res.length === 0) { |
81 | 81 | |
82 | - this.productoAcargar.cantidad = 1; | |
82 | + this.productoAcargar.cantidad ? false : this.productoAcargar.cantidad = 1; | |
83 | 83 | this.productoService.setProductos(this.productoAcargar); |
84 | 84 | this.productoAcargar = this.productoService.productoAcargar = undefined; |
85 | 85 | } else { |
src/app/components/sidebar/sidebar.component.ts