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.
- package/esm2020/crud/sk-cart.service.mjs +5 -5
- package/esm2020/model/lib/product.mjs +1 -1
- package/fesm2015/sk-front-lib-crud.mjs +4 -4
- package/fesm2015/sk-front-lib-crud.mjs.map +1 -1
- package/fesm2015/sk-front-lib-model.mjs.map +1 -1
- package/fesm2020/sk-front-lib-crud.mjs +4 -4
- package/fesm2020/sk-front-lib-crud.mjs.map +1 -1
- package/fesm2020/sk-front-lib-model.mjs.map +1 -1
- package/model/lib/product.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
}
|