Coerce deriveRelevance purpose to LoanPurpose | null

Fixkamo-internal
Shipped
July 9, 2026 at 6:16 PM UTC
Author
kamo
Commit
d7f3702

scenarioFromLeadFields' loanPurpose is LoanPurpose | null | undefined, but Relevance.purpose is LoanPurpose | null — the possible undefined failed the prod type check (next build) and blocked the CI build for all of main. `p ?? null` matches the declared type. Unblocks deploys; not part of the wallpaper work.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing