Formatting
This commit is contained in:
parent
e29a2a00ae
commit
78aa173614
1 changed files with 7 additions and 2 deletions
|
|
@ -316,9 +316,14 @@ export default {
|
||||||
if (category == cartItemCategories.VAPS || category == cartItemCategories.PROMOS) {
|
if (category == cartItemCategories.VAPS || category == cartItemCategories.PROMOS) {
|
||||||
this.saveVaps(this.lineItems);
|
this.saveVaps(this.lineItems);
|
||||||
// Check if service package discount should be removed after vaps change
|
// Check if service package discount should be removed after vaps change
|
||||||
if (this.servicePackageDiscountCartItem && this.discountPackageNames != this.packageLevel) {
|
if (
|
||||||
|
this.servicePackageDiscountCartItem &&
|
||||||
|
this.discountPackageNames != this.packageLevel
|
||||||
|
) {
|
||||||
this.lineItems.supportingItems = this.lineItems.supportingItems.filter(
|
this.lineItems.supportingItems = this.lineItems.supportingItems.filter(
|
||||||
(lineItemsToKeep) => lineItemsToKeep.cartItemType != this.servicePackageDiscountCartItem.cartItemType
|
(lineItemsToKeep) =>
|
||||||
|
lineItemsToKeep.cartItemType !=
|
||||||
|
this.servicePackageDiscountCartItem.cartItemType
|
||||||
);
|
);
|
||||||
await this.dispatchStoreAction(
|
await this.dispatchStoreAction(
|
||||||
storeActions.SAVE_SUPPORTING_ITEMS_SUPPRESSING_STATE_RESETTING,
|
storeActions.SAVE_SUPPORTING_ITEMS_SUPPRESSING_STATE_RESETTING,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue