Commit 8f0f532fa6a0fa21b242c3c15edeb1e0e773b124

Authored by Luis Suarez
1 parent 0ecd086403
Exists in develop

correcciones diff commits

src/app/modules/seleccion-articulos/filtro-categorias/filtro-categorias.component.html
... ... @@ -40,7 +40,7 @@
40 40 (click)="selectCategoria(i, categoria.id)"
41 41 id="cat-content"
42 42 *ngIf="categoria.articulos > 0
43   - && validarFecha(categoria.vigencia_desde,categoria.vigencia_hasta)">
  43 + && validarFecha(categoria.vigencia_desde, categoria.vigencia_hasta)">
44 44 <img
45 45 draggable="false"
46 46 ondragstart="return false;"
src/app/modules/seleccion-articulos/filtro-categorias/filtro-categorias.component.ts
... ... @@ -92,11 +92,7 @@ export class FiltroCategoriasComponent implements OnInit {
92 92 const fechaFin = new Date(fechaFinString);
93 93 const fechaAux = Date.now();
94 94 const fechaHoy = new Date(fechaAux);
95   - if (fechaHoy >= fechaInicio && fechaHoy <= fechaFin) {
96   - return true;
97   - } else {
98   - return false;
99   - }
  95 + return (fechaHoy >= fechaInicio && fechaHoy <= fechaFin) ? true : false;
100 96 }
101 97  
102 98 mediaPantalla() {