Fix DBA display — other_dba_names is a string, not an array
Spreading a string gives individual characters ("C,a,r,i,e,r...").
Filter as string values instead.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
5016f2e2f3
commit
7b9c9a48c0
1 changed files with 2 additions and 2 deletions
|
|
@ -295,8 +295,8 @@ import Base from "../../layouts/Base.astro";
|
|||
const dbaEl = document.getElementById("entity-dba");
|
||||
const dbaValues = [
|
||||
data.filer_499?.trade_name,
|
||||
...(data.rmd?.other_dba_names || []),
|
||||
].filter((v) => v && v !== "None" && v.trim() !== "");
|
||||
data.rmd?.other_dba_names,
|
||||
].filter((v) => v && typeof v === "string" && v !== "None" && v.trim() !== "");
|
||||
if (dbaValues.length > 0) {
|
||||
dbaEl.textContent = "DBA: " + [...new Set(dbaValues)].join(", ");
|
||||
dbaEl.classList.remove("hidden");
|
||||
|
|
|
|||
Loading…
Reference in a new issue