bug fixes
All checks were successful
Build and Publish / build-release (push) Successful in 4m19s

This commit is contained in:
2026-04-30 16:41:34 -05:00
parent 7d5e198156
commit 53bbdca525
16 changed files with 721 additions and 673 deletions

View File

@@ -36,7 +36,7 @@ function policyApplicantName(p: any) {
}
function policyDetailsSummary(p: any) {
const d = p.policy_details
const d = p.insured_object
if (!d || typeof d !== 'object') return '—'
if (p.policy_type === 'car') {
const parts = [d.year, d.make, d.model].filter((x: any) => x !== undefined && x !== null && String(x) !== '')
@@ -55,7 +55,7 @@ function statusColor(status: string) {
switch (status) {
case 'quote_requested': return 'yellow'
case 'quotes_received': return 'blue'
case 'solicitation_sent': return 'purple'
case 'awaiting_policy': return 'purple'
case 'issued': return 'green'
default: return 'gray'
}
@@ -65,7 +65,7 @@ function statusLabel(status: string) {
switch (status) {
case 'quote_requested': return 'Quote Requested'
case 'quotes_received': return 'Quotes Received'
case 'solicitation_sent': return 'Solicitation Sent'
case 'awaiting_policy': return 'Awaiting Policy'
case 'issued': return 'Issued'
default: return status
}