1
0
Fork 0

chore(ui): replace em-dash placeholders with hyphen in NPC readouts

The 'Goods' readout cell rendered an em-dash when the NPC was not a vendor;
dash-sanitize gate requires a plain hyphen on user-facing surfaces.
This commit is contained in:
Jason Fraley 2026-10-05 03:39:23 -04:00
parent 6959a5ca0d
commit 3e9d54486f
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ export function NpcCard({ npc }: NpcCardProps) {
const readoutCells: ReadoutCell[] = [ const readoutCells: ReadoutCell[] = [
{ label: "Faction", value: factionName ?? "Unaffiliated" }, { label: "Faction", value: factionName ?? "Unaffiliated" },
{ label: "Station", value: locationName ?? "Unknown" }, { label: "Station", value: locationName ?? "Unknown" },
{ label: "Goods", value: vendorEnabled ? goodsCount.toString() : "—", mono: true }, { label: "Goods", value: vendorEnabled ? goodsCount.toString() : "-", mono: true },
]; ];
return ( return (

View file

@ -83,7 +83,7 @@ export function NpcProfile({ npc, listings, employmentSlot }: NpcProfileProps) {
const heroCells: ReadoutCell[] = [ const heroCells: ReadoutCell[] = [
{ label: "Faction", value: faction?.name ?? "Unaffiliated" }, { label: "Faction", value: faction?.name ?? "Unaffiliated" },
{ label: "Station", value: location?.name ?? "Unknown" }, { label: "Station", value: location?.name ?? "Unknown" },
{ label: "Goods", value: vendorEnabled ? sellableAssets.length.toString() : "—", mono: true }, { label: "Goods", value: vendorEnabled ? sellableAssets.length.toString() : "-", mono: true },
{ label: "Listings", value: listings.length.toString(), mono: true }, { label: "Listings", value: listings.length.toString(), mono: true },
]; ];