@infrab4a/connect-angular 4.12.0-beta.0 → 4.12.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/services/coupon.service.mjs +2 -2
- package/esm2020/services/home-shop.service.mjs +4 -4
- package/fesm2015/infrab4a-connect-angular.mjs +5 -5
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +3 -3
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1143,7 +1143,7 @@ class CouponService {
|
|
|
1143
1143
|
return false;
|
|
1144
1144
|
}
|
|
1145
1145
|
async hasProductCategories(coupon, checkout) {
|
|
1146
|
-
if (!coupon.productsCategories || !coupon.productsCategories
|
|
1146
|
+
if (!coupon.productsCategories || !coupon.productsCategories?.length) {
|
|
1147
1147
|
return true;
|
|
1148
1148
|
}
|
|
1149
1149
|
const couponCategories = await this.getCouponCategoriesId(coupon.productsCategories);
|
|
@@ -2251,10 +2251,10 @@ class HomeShopService {
|
|
|
2251
2251
|
return this.getHomeConfiguration().pipe(map((home) => home.minValueForFreeShipping));
|
|
2252
2252
|
}
|
|
2253
2253
|
getDiscoverProducts(gender) {
|
|
2254
|
-
return this.getHomeConfiguration().pipe(concatMap((home) => from(this.categoryRepository.getCategoriesForHome(home.discoverCategories,
|
|
2254
|
+
return this.getHomeConfiguration().pipe(concatMap((home) => from(this.categoryRepository.getCategoriesForHome(home.discoverCategories, gender, undefined)).pipe(map((groups) => groups.map(this.buildCategoryGroupWithRequiredData)))));
|
|
2255
2255
|
}
|
|
2256
2256
|
getFeaturedProducts(gender) {
|
|
2257
|
-
return this.getHomeConfiguration().pipe(concatMap((home) => from(this.categoryRepository.getCategoriesForHome(home.featuredCategories,
|
|
2257
|
+
return this.getHomeConfiguration().pipe(concatMap((home) => from(this.categoryRepository.getCategoriesForHome(home.featuredCategories, gender, undefined)).pipe(map((groups) => groups.map(this.buildCategoryGroupWithRequiredData)))));
|
|
2258
2258
|
}
|
|
2259
2259
|
getVerticalProducts(gender) {
|
|
2260
2260
|
return this.getHomeConfiguration().pipe(concatMap((home) => forkJoin(home.verticalCarousels.filter(Boolean).map((id) => from(this.categoryRepository.get({ id })).pipe(concatMap((category) => from(this.productRepository.find({
|