From 436612c1c6a684674cb08996ec781d6a74ecdf0c Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Thu, 31 Oct 2024 10:41:10 -0400 Subject: [PATCH] Commit for draft comparison --- src/layouts/payment-method/payment-method.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index b253f2e0..90d12c7b 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -127,12 +127,13 @@ export default { next((vm) => { vm.setCmsContent(resultMap.cmsContent); + vm.initializeComponent(); vm.updateFooterButtonText(vm.customCallToActionButtonCopy); }); }, data() { return { - paymentMethod: this.getPaymentMethodFromStore(), + paymentMethod: null, widget: { paymentMethod: 'PaymentMethodWidget', paymentMethodApplePay: 'PaymentMethodWidgetApplePay' @@ -251,8 +252,10 @@ export default { && serviceLocationReqs && scheduleReqs && customerReqs - && contactInfoReqs - ); + && contactInfoReqs); + }, + initializeComponent() { + this.paymentMethod = this.getPaymentMethodFromStore(); }, getPaymentMethodFromStore() { if (this.isPayInAdvanceDisabled) {