dont add fee to local array if hidden
This commit is contained in:
parent
0d03f5e36e
commit
8cabb807e8
1 changed files with 2 additions and 2 deletions
|
|
@ -1692,7 +1692,7 @@ export const useMainStore = defineStore({
|
|||
},
|
||||
|
||||
updateMobileFee(fee) {
|
||||
const isMobileFeeHidden = getExperimentSettingValue(experimentSettings.ISS_FEATURE_TOGGLE_IS_MOBILE_FEE_HIDDEN) === 'true';
|
||||
const isMobileFeeHidden = getExperimentSettingValue(this.experimentSettings, experimentSettings.ISS_FEATURE_TOGGLE_IS_MOBILE_FEE_HIDDEN) === 'true';
|
||||
// Mobile Fee is only added for NO COMP or ITAC and is NOT hidden
|
||||
if (fee && this.isVerified && (this.isNoComp || this.isITAC) && !isMobileFeeHidden) {
|
||||
this.addPartTypeFeeItem(fee, partTypeStrings.MOBILE_FEE);
|
||||
|
|
@ -1702,7 +1702,7 @@ export const useMainStore = defineStore({
|
|||
},
|
||||
|
||||
updateRecycleFee(fee) {
|
||||
const isRecycleFeeHidden = this.getSettingValue(experimentSettings.ISS_FEATURE_TOGGLE_IS_RECYCLE_FEE_HIDDEN) === 'true';
|
||||
const isRecycleFeeHidden = getExperimentSettingValue(this.experimentSettings, experimentSettings.ISS_FEATURE_TOGGLE_IS_RECYCLE_FEE_HIDDEN) === 'true';
|
||||
// Recycle Fee is only added for NO COMP or ITAC and has Windshield Replacement and is NOT hidden
|
||||
if (fee && this.isVerified && (this.isNoComp || this.isITAC) && this.hasWindshieldReplacement && !isRecycleFeeHidden) {
|
||||
this.addPartNumberFeeItem(fee, partNumberStrings.RECYCLE_FEE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue