displayed date on dupecheck
couple lines of auto formatting
This commit is contained in:
parent
52b1bb3a28
commit
c32fd15d7e
1 changed files with 4 additions and 5 deletions
|
|
@ -116,7 +116,7 @@ export default {
|
|||
const vehicle = !!o.vehicleYear && !!o.vehicleMake && !!o.vehicleModel
|
||||
? `${o.vehicleYear} ${o.vehicleMake} ${o.vehicleModel}`
|
||||
: null;
|
||||
const dateOfLoss = formatDate(new Date(useMainStore().order.policy.dateOfLoss), dupeCheckDateFormatter);
|
||||
const dateOfLoss = formatDate(new Date(o.referralDate), dupeCheckDateFormatter);
|
||||
const subtext = vehicle
|
||||
? `${vehicle}, ${dateOfLoss}`
|
||||
: (vehicle ?? '').concat(dateOfLoss);
|
||||
|
|
@ -173,7 +173,7 @@ export default {
|
|||
try
|
||||
{
|
||||
// Call SaveSession to create referral.
|
||||
if ( callSaveSession ) {
|
||||
if (callSaveSession) {
|
||||
// SaveSession will bailout on error.
|
||||
await saveSession({ shouldAwaitSaveSessionQueue: true, bailoutOnError: true });
|
||||
}
|
||||
|
|
@ -187,15 +187,14 @@ export default {
|
|||
// Call getCoveragePolicyInfo to get the policy info.
|
||||
// GetCoveragePolicyInfo handles exception / error internally. We do not care if it fails, user continues in unverified path.
|
||||
await this.mainStore.getCoveragePolicyInfo();
|
||||
|
||||
|
||||
this.pushEventToGA("policy_search", "policy_found", this.mainStore.isPolicyLookupSuccessful ? "Yes" : "No", true);
|
||||
|
||||
if ( this.mainStore.isPolicyLookupSuccessful) {
|
||||
if (this.mainStore.isPolicyLookupSuccessful) {
|
||||
this.pushEventToGA("zip_validation", "success", "N/A", true);
|
||||
}
|
||||
else {
|
||||
if ( this.mainStore.order.policy.policyLookupErrorCode === 2) {
|
||||
if (this.mainStore.order.policy.policyLookupErrorCode === 2) {
|
||||
this.pushEventToGA("zip_validation", "fail", "N/A", true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue