mirror of
https://github.com/Mueller-Patrick/Betterzon.git
synced 2026-04-27 15:50:11 +00:00
wip: profile
This commit is contained in:
@@ -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;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user