Some more guarding.
This commit is contained in:
parent
c338c12f1c
commit
c6def1fd8a
1 changed files with 23 additions and 14 deletions
|
|
@ -138,6 +138,8 @@ export default {
|
||||||
async forwardButtonAction() {
|
async forwardButtonAction() {
|
||||||
showIssLoadingModal(true);
|
showIssLoadingModal(true);
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
// If user clicked foward without selecting an option or user click on "start a new claim" button.
|
// If user clicked foward without selecting an option or user click on "start a new claim" button.
|
||||||
if (this.selectedAnswer == null || this.selectedAnswer === 'NewClaim') {
|
if (this.selectedAnswer == null || this.selectedAnswer === 'NewClaim') {
|
||||||
// Call SaveSession to create referral.
|
// Call SaveSession to create referral.
|
||||||
|
|
@ -155,6 +157,13 @@ export default {
|
||||||
|
|
||||||
// Call getCoveragePolicyInfo to get the policy info.
|
// Call getCoveragePolicyInfo to get the policy info.
|
||||||
await this.mainStore.getCoveragePolicyInfo();
|
await this.mainStore.getCoveragePolicyInfo();
|
||||||
|
}
|
||||||
|
catch (error) {
|
||||||
|
// No error handling here needed.
|
||||||
|
// SaveSession will bailout.
|
||||||
|
// LoadSession will bailout.
|
||||||
|
// GetCoveragePolicyInfo handles exception / error internally.
|
||||||
|
}
|
||||||
|
|
||||||
this.pushEventToGA("policy_search", "policy_found", this.mainStore.isPolicyLookupSuccessful ? "Yes" : "No", true);
|
this.pushEventToGA("policy_search", "policy_found", this.mainStore.isPolicyLookupSuccessful ? "Yes" : "No", true);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue