diff --git a/src/app/pages/page-accueil/page-accueil.component.ts b/src/app/pages/page-accueil/page-accueil.component.ts index 49a9f06..f55eb3f 100644 --- a/src/app/pages/page-accueil/page-accueil.component.ts +++ b/src/app/pages/page-accueil/page-accueil.component.ts @@ -67,13 +67,14 @@ export class PageAccueilComponent implements OnInit { onRatingFilter(stateNumber: number): void { console.log(stateNumber); + this.listRate = []; this.listData.forEach(product => { if(product.product_rating >= stateNumber) { this.listRate.push(product); } }); - this.listData = this.listRate; - console.log(this.listData); + //this.listData = this.listRate; + console.log(this.listRate); } }