From b243f41fa74f5adcf78040476ddc48b7cfed8139 Mon Sep 17 00:00:00 2001 From: CarlNation <32103961+CarlNation@users.noreply.github.com> Date: Tue, 24 Oct 2023 11:08:51 -0400 Subject: [PATCH 1/2] CSR-1392 make displayPiaAlert a computed instead of data field --- src/layouts/payment-method/payment-method.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index 08ee3565e..14423d763 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -194,7 +194,6 @@ export default { taxedLineItems: [], // temporary, for use by cart.vue availableLineItems: [], paymentMethodInternalModel: this.getPaymentMethodFromStore(), - displayPiaAlert: this.getPiaAlert(), }; }, methods: { @@ -250,9 +249,6 @@ export default { packageReqs && serviceLocationReqs && isInsuranceSet && scheduleReqs && customerReqs ); }, - getPiaAlert() { - return store.getters.order.payment.piaErrorCode ? true : false; - }, getPaymentMethodFromStore() { const isPia = store.getters.order.payment.isPia; @@ -370,6 +366,9 @@ export default { return this.paymentMethodInternalModel; }, + displayPiaAlert() { + return store.getters.order.payment.piaErrorCode ? true : false; + } , }, watch: { customCtaCopy(newValue) { From f471bac01cac1a19f6e6b777320a92044fed2807 Mon Sep 17 00:00:00 2001 From: CarlNation <32103961+CarlNation@users.noreply.github.com> Date: Tue, 24 Oct 2023 11:13:19 -0400 Subject: [PATCH 2/2] CSR-1392 prettier --- src/layouts/payment-method/payment-method.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index 14423d763..f72784abb 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -368,7 +368,7 @@ export default { }, displayPiaAlert() { return store.getters.order.payment.piaErrorCode ? true : false; - } , + }, }, watch: { customCtaCopy(newValue) {