simpo-component-library 3.6.205 → 3.6.206
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/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +2 -2
- package/fesm2022/simpo-component-library.mjs +1 -1
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/package.json +1 -1
- package/simpo-component-library-3.6.206.tgz +0 -0
- package/simpo-component-library-3.6.205.tgz +0 -0
@@ -8409,7 +8409,7 @@ class CartComponent extends BaseSection {
|
|
8409
8409
|
redeemScheme(scheme, action) {
|
8410
8410
|
this.restService.redeemScheme(scheme, this.cartInfo.cartId, action).subscribe((res) => {
|
8411
8411
|
if (!action) {
|
8412
|
-
if (this.responseData?.totalAmount ?? 0 - this.responseData?.billdetails?.discountAmount ?? 0
|
8412
|
+
if (this.responseData?.totalAmount ?? 0 - this.responseData?.billdetails?.discountAmount ?? 0 < scheme.amount) {
|
8413
8413
|
this.showReedemError = true;
|
8414
8414
|
this.vaildAmount = scheme.amount - (this.responseData?.totalAmount ?? 0 - this.responseData?.billdetails?.discountAmount ?? 0);
|
8415
8415
|
}
|