diff --git a/src/app/modules/seleccion-articulos/filtro-categorias/filtro-categorias.component.html b/src/app/modules/seleccion-articulos/filtro-categorias/filtro-categorias.component.html index f8c4c4c..49fd2ec 100644 --- a/src/app/modules/seleccion-articulos/filtro-categorias/filtro-categorias.component.html +++ b/src/app/modules/seleccion-articulos/filtro-categorias/filtro-categorias.component.html @@ -40,7 +40,7 @@ (click)="selectCategoria(i, categoria.id)" id="cat-content" *ngIf="categoria.articulos > 0 - && validarFecha(categoria.vigencia_desde,categoria.vigencia_hasta)"> + && validarFecha(categoria.vigencia_desde, categoria.vigencia_hasta)"> = fechaInicio && fechaHoy <= fechaFin) { - return true; - } else { - return false; - } + return (fechaHoy >= fechaInicio && fechaHoy <= fechaFin) ? true : false; } mediaPantalla() {