Replace useMainStore() with this.mainStore
This commit is contained in:
parent
e6448f9c51
commit
1463da64db
1 changed files with 4 additions and 4 deletions
|
|
@ -307,18 +307,18 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async forwardButtonAction() {
|
async forwardButtonAction() {
|
||||||
useMainStore().updatePolicyData(this.welcomePageModel);
|
this.mainStore.updatePolicyData(this.welcomePageModel);
|
||||||
await useMainStore().getDuplicateReferrals()
|
await this.mainStore.getDuplicateReferrals()
|
||||||
.finally(async () => {
|
.finally(async () => {
|
||||||
if (this.isCoverageEnabled) {
|
if (this.isCoverageEnabled) {
|
||||||
await useMainStore().getCoveragePolicyInfo();
|
await this.mainStore.getCoveragePolicyInfo();
|
||||||
}
|
}
|
||||||
this.navigateForward();
|
this.navigateForward();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
navigateForward() {
|
navigateForward() {
|
||||||
if (useMainStore().applicationUser.duplicateOrders?.length > 0 ?? false) {
|
if (this.mainStore.applicationUser.duplicateOrders?.length > 0 ?? false) {
|
||||||
this.$router.navigate(
|
this.$router.navigate(
|
||||||
this.navigationScenarios.CLICKED_FORWARD_WITH_DUPLICATES,
|
this.navigationScenarios.CLICKED_FORWARD_WITH_DUPLICATES,
|
||||||
this.$route,
|
this.$route,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue