displayed date on dupecheck

couple lines of auto formatting
This commit is contained in:
Bill Richardson 2026-07-08 15:01:12 -04:00
parent 52b1bb3a28
commit c32fd15d7e

View file

@ -116,7 +116,7 @@ export default {
const vehicle = !!o.vehicleYear && !!o.vehicleMake && !!o.vehicleModel const vehicle = !!o.vehicleYear && !!o.vehicleMake && !!o.vehicleModel
? `${o.vehicleYear} ${o.vehicleMake} ${o.vehicleModel}` ? `${o.vehicleYear} ${o.vehicleMake} ${o.vehicleModel}`
: null; : null;
const dateOfLoss = formatDate(new Date(useMainStore().order.policy.dateOfLoss), dupeCheckDateFormatter); const dateOfLoss = formatDate(new Date(o.referralDate), dupeCheckDateFormatter);
const subtext = vehicle const subtext = vehicle
? `${vehicle}, ${dateOfLoss}` ? `${vehicle}, ${dateOfLoss}`
: (vehicle ?? '').concat(dateOfLoss); : (vehicle ?? '').concat(dateOfLoss);
@ -173,7 +173,7 @@ export default {
try try
{ {
// Call SaveSession to create referral. // Call SaveSession to create referral.
if ( callSaveSession ) { if (callSaveSession) {
// SaveSession will bailout on error. // SaveSession will bailout on error.
await saveSession({ shouldAwaitSaveSessionQueue: true, bailoutOnError: true }); await saveSession({ shouldAwaitSaveSessionQueue: true, bailoutOnError: true });
} }
@ -187,15 +187,14 @@ export default {
// Call getCoveragePolicyInfo to get the policy info. // Call getCoveragePolicyInfo to get the policy info.
// GetCoveragePolicyInfo handles exception / error internally. We do not care if it fails, user continues in unverified path. // GetCoveragePolicyInfo handles exception / error internally. We do not care if it fails, user continues in unverified path.
await this.mainStore.getCoveragePolicyInfo(); await this.mainStore.getCoveragePolicyInfo();
this.pushEventToGA("policy_search", "policy_found", this.mainStore.isPolicyLookupSuccessful ? "Yes" : "No", true); 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); this.pushEventToGA("zip_validation", "success", "N/A", true);
} }
else { else {
if ( this.mainStore.order.policy.policyLookupErrorCode === 2) { if (this.mainStore.order.policy.policyLookupErrorCode === 2) {
this.pushEventToGA("zip_validation", "fail", "N/A", true); this.pushEventToGA("zip_validation", "fail", "N/A", true);
} }
} }