Commit b102d738bf0bea7ac19d52946db168694a797be6
1 parent
0d76ed2a04
Exists in
master
Arreglo para mostrar descripcion en confirmar pago.
Showing
2 changed files
with
7 additions
and
11 deletions
Show diff stats
src/app/components/confirmacion-carrito/confirmacion-carrito.component.html
... | ... | @@ -45,11 +45,13 @@ |
45 | 45 | {{producto.DET_LAR}} |
46 | 46 | </small> |
47 | 47 | </p> |
48 | - <p *ngFor="let p of producto.productos" class="h6 text-left m-0"> | |
49 | - <small> | |
50 | - - {{p.cantidad}} {{p.DET_LAR}} | |
51 | - </small> | |
52 | - </p> | |
48 | + <div *ngIf="producto.tieneSinonimos"> | |
49 | + <p *ngFor="let p of producto.productos" class="h6 text-left m-0"> | |
50 | + <small> | |
51 | + - {{p.cantidad}} {{p.DET_LAR}} | |
52 | + </small> | |
53 | + </p> | |
54 | + </div> | |
53 | 55 | <div class="row m-0"> |
54 | 56 | <div class="col-6 my-auto pt-2 pr-2 p-0"> |
55 | 57 | <p class="text-left m-0 h6"> |
src/app/components/inicio/inicio.component.ts
... | ... | @@ -148,12 +148,6 @@ export class InicioComponent implements OnInit, AfterViewInit { |
148 | 148 | productosPersonalizados($event: Producto[]) { |
149 | 149 | |
150 | 150 | var productosPersonalizados = $event; |
151 | - | |
152 | - this.promoAcargar.productos.forEach(productoPromo => { | |
153 | - | |
154 | - if (!productoPromo.idSinonimo) productosPersonalizados.push(productoPromo); | |
155 | - }) | |
156 | - | |
157 | 151 | this.promoAcargar.productos = productosPersonalizados; |
158 | 152 | this.confirmarProducto(); |
159 | 153 | } |