Commit f52b8fb0ee72da1a0e85f3c0de580966931bac51
1 parent
c4375fde73
Exists in
master
and in
1 other branch
Rollback
Showing
2 changed files
with
1 additions
and
11 deletions
Show diff stats
src/app/components/confirmacion-carrito/confirmacion-carrito.component.html
src/app/components/sidebar/sidebar.component.ts
| ... | ... | @@ -56,11 +56,6 @@ export class SidebarComponent implements OnInit { |
| 56 | 56 | aumentarCantidad(producto: Producto) { |
| 57 | 57 | |
| 58 | 58 | if (producto.cantidad < this.cantMax) { |
| 59 | - if (producto.PRO) { | |
| 60 | - producto.productos.forEach(promoProducto => { | |
| 61 | - promoProducto.cantidad++; | |
| 62 | - }) | |
| 63 | - } | |
| 64 | 59 | producto.cantidad++; |
| 65 | 60 | this.cantTotal++ |
| 66 | 61 | } |
| ... | ... | @@ -69,11 +64,6 @@ export class SidebarComponent implements OnInit { |
| 69 | 64 | restarCantidad(producto: Producto) { |
| 70 | 65 | |
| 71 | 66 | if (producto.cantidad > this.cantMin) { |
| 72 | - if (producto.PRO) { | |
| 73 | - producto.productos.forEach(promoProducto => { | |
| 74 | - promoProducto.cantidad--; | |
| 75 | - }) | |
| 76 | - } | |
| 77 | 67 | producto.cantidad--; |
| 78 | 68 | this.cantTotal--; |
| 79 | 69 | } |