@infrab4a/connect-angular 4.13.3-beta.1 → 4.13.3-beta.2

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.
@@ -1487,8 +1487,8 @@ class CartService {
1487
1487
  }), concatMap((checkout) => this.checkoutService.updateCheckoutLineItems(checkout)), map((checkout) => this.generateCartObject(checkout.lineItems)), tap((cart) => this.cartSubject.next(cart)));
1488
1488
  }
1489
1489
  updateUserCart(user) {
1490
- if (this.user?.id === user.id && this.user?.isSubscriber === user.isSubscriber)
1491
- return this.cartSubject;
1490
+ if (this.user?.id === user?.id && this.user?.isSubscriber === user.isSubscriber)
1491
+ return this.getCart();
1492
1492
  return this.checkoutService.getCheckout().pipe(concatMap((checkout) => this.checkoutService.updateCheckoutUser(Checkout.toInstance({ ...checkout.toPlain(), user }))), concatMap(async (checkout) => await this.checkoutService
1493
1493
  .updateCheckoutLineItems(Checkout.toInstance({
1494
1494
  ...checkout.toPlain(),