formatting
This commit is contained in:
parent
05c7e247a7
commit
c49217aee6
1 changed files with 17 additions and 21 deletions
|
|
@ -295,9 +295,9 @@ export default {
|
||||||
//call coverage policy lookup if isCoverageEnabled flag enabled
|
//call coverage policy lookup if isCoverageEnabled flag enabled
|
||||||
if (this.isCoverageEnabled){
|
if (this.isCoverageEnabled){
|
||||||
const policyLookupResponse = await this.getPolicyLookupResponse();
|
const policyLookupResponse = await this.getPolicyLookupResponse();
|
||||||
if(policyLookupResponse!=null){
|
if (policyLookupResponse !== null){
|
||||||
var policy = policyLookupResponse.policies?.[0];
|
var policy = policyLookupResponse.policies?.[0];
|
||||||
if(policy!=null){
|
if (policy !== null){
|
||||||
//populate policy holder details from policy lookup
|
//populate policy holder details from policy lookup
|
||||||
this.mainStore.order.customer.address.streetAddress = policy.insureds?.[0]?.address;
|
this.mainStore.order.customer.address.streetAddress = policy.insureds?.[0]?.address;
|
||||||
this.mainStore.order.customer.address.city = policy.insureds?.[0]?.city;
|
this.mainStore.order.customer.address.city = policy.insureds?.[0]?.city;
|
||||||
|
|
@ -311,7 +311,6 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
getWelcomePageModelFromStore() {
|
getWelcomePageModelFromStore() {
|
||||||
|
|
@ -343,12 +342,10 @@ export default {
|
||||||
}
|
}
|
||||||
return damageCauseAnswersObj;
|
return damageCauseAnswersObj;
|
||||||
},
|
},
|
||||||
DamageGlassOnlyOptions()
|
DamageGlassOnlyOptions() {
|
||||||
{
|
|
||||||
return this.getCmsContent("GlassOnlyQuestion", "Answers");
|
return this.getCmsContent("GlassOnlyQuestion", "Answers");
|
||||||
},
|
},
|
||||||
DamageGlassOnlyQuestion()
|
DamageGlassOnlyQuestion() {
|
||||||
{
|
|
||||||
return this.getCmsContent("GlassOnlyQuestion", "QuestionText");
|
return this.getCmsContent("GlassOnlyQuestion", "QuestionText");
|
||||||
},
|
},
|
||||||
displayDamageCityQuestion() {
|
displayDamageCityQuestion() {
|
||||||
|
|
@ -372,8 +369,7 @@ export default {
|
||||||
getStates() {
|
getStates() {
|
||||||
return states;
|
return states;
|
||||||
},
|
},
|
||||||
isPolicyHolderEnabled()
|
isPolicyHolderEnabled() {
|
||||||
{
|
|
||||||
return !!this.mainStore.issConfig.disabledFields.policyNumber;
|
return !!this.mainStore.issConfig.disabledFields.policyNumber;
|
||||||
},
|
},
|
||||||
isCoverageEnabled() {
|
isCoverageEnabled() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue