wip: profile

This commit is contained in:
2021-06-17 17:18:36 +02:00
parent fe2c064e30
commit f28b301a28
13 changed files with 220 additions and 64 deletions
@@ -81,14 +81,14 @@ export class HotDealsWidgetComponent implements OnInit {
}
getVendors(): void {
this.productsPricesMap.keys().forEach(
key => {
const currentDeal = this.productsPricesMap[key].lowestPrice;
this.bestDealsProductIds.forEach(
productId => {
const currentDeal = this.productsPricesMap[productId].lowestPrice;
this.apiService.getVendorById(currentDeal.vendor_id).subscribe(
vendor => {
this.productsPricesMap[key].vendor = vendor
})
})
this.productsPricesMap[productId].vendor = vendor;
});
});
}