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:
justin 2026-04-27 07:46:52 -05:00
parent 5016f2e2f3
commit 7b9c9a48c0

View file

@ -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");