From 1463da64db3cf8ba394f64174d44ee6de13329a8 Mon Sep 17 00:00:00 2001 From: Michaela Brydon Date: Wed, 11 Oct 2023 14:10:22 -0400 Subject: [PATCH] Replace useMainStore() with this.mainStore --- src/layouts/welcome-page/welcome-page.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/layouts/welcome-page/welcome-page.vue b/src/layouts/welcome-page/welcome-page.vue index a1e0b321..b6d0f0fb 100644 --- a/src/layouts/welcome-page/welcome-page.vue +++ b/src/layouts/welcome-page/welcome-page.vue @@ -307,18 +307,18 @@ export default { }, methods: { async forwardButtonAction() { - useMainStore().updatePolicyData(this.welcomePageModel); - await useMainStore().getDuplicateReferrals() + this.mainStore.updatePolicyData(this.welcomePageModel); + await this.mainStore.getDuplicateReferrals() .finally(async () => { if (this.isCoverageEnabled) { - await useMainStore().getCoveragePolicyInfo(); + await this.mainStore.getCoveragePolicyInfo(); } this.navigateForward(); }); }, navigateForward() { - if (useMainStore().applicationUser.duplicateOrders?.length > 0 ?? false) { + if (this.mainStore.applicationUser.duplicateOrders?.length > 0 ?? false) { this.$router.navigate( this.navigationScenarios.CLICKED_FORWARD_WITH_DUPLICATES, this.$route,