sk-front-lib 0.19.8 → 0.19.10

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.
@@ -909,13 +909,13 @@ class SkCartLocalService {
909
909
  const cartList = this.loadRaw();
910
910
  const index = this.loadRaw().findIndex(item => item.id === cart.id);
911
911
  if (index > -1) {
912
- if (cart.product.maxBuyCount > 0 && cart.amount > cart.product.maxBuyCount) {
913
- // 에러 리턴
914
- return throwError(new Error('최대 구매 수량을 초과하였습니다.'));
915
- }
916
912
  cartList[index] = cart;
917
913
  localStorage.setItem('cartData', SkUtils.encodeBase64(cartList));
918
914
  }
915
+ if (cart.product.maxBuyCount > 0 && cart.amount > cart.product.maxBuyCount) {
916
+ // 에러 리턴
917
+ return throwError(new Error('최대 구매 수량을 초과하였습니다.'));
918
+ }
919
919
  return of(cartList);
920
920
  }
921
921
  }