Always show corp suggestions on Officer step, check intake_data for name

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
justin 2026-04-28 23:37:22 -05:00
parent f5d307a1e8
commit 59c2d06736

View file

@ -201,9 +201,10 @@
f.zip.value = oc.zip || (i === 1 ? (s.entity?.address_zip || "") : "");
}
// Load corporate record suggestions if officer 1 name is empty
if (!o[0]?.name && s.entity?.legal_name) {
loadOfficerSuggestions(s.entity.legal_name);
// Load corporate record suggestions — always show if we have a legal name
const legalName = s.entity?.legal_name || s.intake_data?.entity_legal_name || "";
if (legalName) {
loadOfficerSuggestions(legalName);
}
});