prettier run
This commit is contained in:
CarlNation 2023-06-07 13:29:25 -04:00
parent b4cfc1ed6c
commit 036567b1c3

View file

@ -373,17 +373,20 @@ export default {
supportingItems,
false
);
}
else {
} else {
// if it's not a mobile and/or premium early bird, then make sure we remove any that may have been added
const removeEarlyBirdIndex = supportingItems.findIndex(
(item) => item.partNumber == PREMIUM_FEE_PART_TYPE
);
if (removeEarlyBirdIndex >= 0) {
supportingItems.splice(removeEarlyBirdIndex, 1)
this.dispatchStoreAction(this.storeActions.SAVE_SUPPORTING_ITEMS, supportingItems, false);
}
supportingItems.splice(removeEarlyBirdIndex, 1);
this.dispatchStoreAction(
this.storeActions.SAVE_SUPPORTING_ITEMS,
supportingItems,
false
);
}
}
},
},