make final deductible call only if successful policy lookup
This commit is contained in:
parent
f471a812e2
commit
9465191553
1 changed files with 4 additions and 1 deletions
|
|
@ -147,7 +147,10 @@ export default {
|
||||||
// Call APIs
|
// Call APIs
|
||||||
const cmsContentPromise = fetchCmsContentForPage(to?.query?.issPage);
|
const cmsContentPromise = fetchCmsContentForPage(to?.query?.issPage);
|
||||||
const supportingItemsPromise = await useMainStore().getSupportingItems();
|
const supportingItemsPromise = await useMainStore().getSupportingItems();
|
||||||
const finalDeductiblePromise = await useMainStore().getFinalDeductible();
|
let finalDeductiblePromise = '';
|
||||||
|
if (useMainStore().order.policyLookupSuccessful) {
|
||||||
|
finalDeductiblePromise = await useMainStore().getFinalDeductible();
|
||||||
|
}
|
||||||
|
|
||||||
// Settle promises and get results
|
// Settle promises and get results
|
||||||
const promiseResultMap = [
|
const promiseResultMap = [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue