Commit 099584bd37b177315727fc59bf3b40a9a062fd68
1 parent
aea749c51a
Exists in
develop
agrego img not found cuando la promo no tiene imagen
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/app/shared/header-publicidad/header-publicidad.component.ts
| ... | ... | @@ -68,11 +68,12 @@ export class HeaderPublicidadComponent implements OnInit { |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | openModalConfirmacion(articulo: IArticulo) { |
| 71 | + console.log(articulo) | |
| 71 | 72 | this.modalRef = this.modalService.show(ConfirmacionComponent, |
| 72 | 73 | { |
| 73 | 74 | initialState: { |
| 74 | 75 | titleMessage: articulo.DET_LAR, |
| 75 | - imagenPath: articulo.imagenes.length ? articulo.imagenes[0].imagen : '', | |
| 76 | + imagenPath: articulo.imagenes.length ? articulo.imagenes[0].imagen : 'assets/img/image-not-found.jpg', | |
| 76 | 77 | footerMessageFirst: `¿DESEA AGREGAR ESTE ARTÍCULO`, |
| 77 | 78 | footerMessageSecond: `a su carrito?`, |
| 78 | 79 | footerConfirmation: articulo.PreVen, |