From 6ffe81133600d0965755e84f85a356918f142a2d Mon Sep 17 00:00:00 2001 From: Michaela Brydon Date: Thu, 8 Aug 2024 10:19:44 -0400 Subject: [PATCH] Tweaks --- src/helpers/cms-content-helper.js | 1 - .../order-confirmation/order-confirmation.vue | 2 +- src/layouts/payment-method/payment-method.vue | 13 ------------- 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/src/helpers/cms-content-helper.js b/src/helpers/cms-content-helper.js index c5b462eb..4b44e722 100644 --- a/src/helpers/cms-content-helper.js +++ b/src/helpers/cms-content-helper.js @@ -140,7 +140,6 @@ function processPageData(baseResponse, clientResponse) { widgets.forEach((widget) => { // Global state value replacement. - console.log(widget); const widgetWithReplacements = findAndReplaceGlobalStateValues(widget.Model, widget.Name); // If we already have this widget, push it on the collection diff --git a/src/layouts/order-confirmation/order-confirmation.vue b/src/layouts/order-confirmation/order-confirmation.vue index 9fb9279f..356bd643 100644 --- a/src/layouts/order-confirmation/order-confirmation.vue +++ b/src/layouts/order-confirmation/order-confirmation.vue @@ -120,7 +120,7 @@ export default { mixins: [BaseFormMixin], async beforeRouteEnter(to, from, next) { // Call APIs - const cmsContent = fetchCmsContentForPage(to.query.issPage); + const cmsContentPromise = fetchCmsContentForPage(to.query.issPage); // Settle promises and get results const promiseResultMap = [ diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index 7915c06e..8c84b991 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -306,19 +306,6 @@ export default { this.navigationScenarios.CLICKED_FORWARD, this.$route ); - // await submitWorkOrder({ submitType: submitType.SAFELITE }).then(() => { - // this.$router.navigate( - // this.navigationScenarios.CLICKED_FORWARD, - // this.$route - // ); - // }).catch((submitError) => { - // useMainStore().setBailout(bailoutMessage.saveSessionError(submitError.data)); - // this.$router.navigate( - // this.navigationScenarios.SAVE_SESSION_FAILED, - // this.$route, - // { query: { issPage: issPageValues.PAYMENT_METHOD } } - // ); - // }); } catch (error) { useMainStore().setBailout(bailoutMessage.saveSessionError(submitError.data)); this.$router.navigate(