This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user