From 5dcfcaef81f123c08ca8c24a84693578db7c7471 Mon Sep 17 00:00:00 2001 From: hiteshkumar87 Date: Tue, 9 Jan 2024 21:17:08 +0530 Subject: [PATCH] Update payment-method.vue change computed property to data field isPiaDisabled --- src/layouts/payment-method/payment-method.vue | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index 96f2fda75..9e3910b40 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -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;