Update payment-method.vue
change computed property to data field isPiaDisabled
This commit is contained in:
parent
f6f0b270c9
commit
5dcfcaef81
1 changed files with 8 additions and 7 deletions
|
|
@ -307,6 +307,7 @@ export default {
|
|||
availableVaps: [],
|
||||
paymentMethodInternalModel: this.getPaymentMethodFromStore(),
|
||||
inactivePromos: this.getInactivePromosFromStore(),
|
||||
isPiaDisabled: this.getPiaStatusFromStore(),
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
|
|
@ -499,6 +500,13 @@ export default {
|
|||
this.$route
|
||||
);
|
||||
},
|
||||
getPiaStatusFromStore() {
|
||||
const piaExperience = this.getSettingValue(experimentSettings.PIA_EXPERIENCE);
|
||||
|
||||
const isEnabled = piaExperience === "PIA Optional" || piaExperience === "PIA Required";
|
||||
|
||||
return !isEnabled;
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
damageInfo() {
|
||||
|
|
@ -519,13 +527,6 @@ export default {
|
|||
return null;
|
||||
}
|
||||
},
|
||||
isPiaDisabled() {
|
||||
const piaExperience = this.getSettingValue(experimentSettings.PIA_EXPERIENCE);
|
||||
|
||||
const isEnabled = piaExperience === "PIA Optional" || piaExperience === "PIA Required";
|
||||
|
||||
return !isEnabled;
|
||||
},
|
||||
paymentMethod() {
|
||||
if (this.isPiaDisabled) {
|
||||
return paymentMethods.LATER;
|
||||
|
|
|
|||
Loading…
Reference in a new issue