move method call to beforeMount

This commit is contained in:
Katie Kroell 2023-10-18 15:46:33 -04:00
parent 162a20a095
commit 3fb372c5fd

View file

@ -328,9 +328,11 @@ export default {
}
}
},
beforeMount() {
this.getVehicleDeductible();
},
mounted() {
setupModalLinks(this);
this.getVehicleDeductible();
},
methods: {
arePagePrerequisitesValid() {
@ -453,7 +455,7 @@ export default {
this.supportingItems = newSupportingItems;
},
async getVehicleDeductible() {
await this.mainStore.getFinalDeductible();
await useMainStore().getFinalDeductible();
}
}
};