Replace useMainStore() with this.mainStore

This commit is contained in:
Michaela Brydon 2023-10-11 14:10:22 -04:00
parent e6448f9c51
commit 1463da64db

View file

@ -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,