sk-front-lib 0.17.49 → 0.17.50

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.
@@ -982,10 +982,10 @@ class SkCartService {
982
982
  this.checkSelectedItems();
983
983
  });
984
984
  }
985
- update(cart) {
985
+ update(cart, errorCallback) {
986
986
  this._authService.checkLogin()
987
987
  .pipe(switchMap(result => result ? this._apiCartService.update(cart) : this._apiLocalService.update(cart)))
988
- .subscribe(result => this._cartItems$.next(result));
988
+ .subscribe(result => this._cartItems$.next(result), errorCallback);
989
989
  }
990
990
  getCart(id) {
991
991
  return this._cartItems$.getValue().find(value => value.id === id);