diff --git a/frontend/src/lib/person/PersonCard.svelte b/frontend/src/lib/person/PersonCard.svelte index aed13bd4..f1c38093 100644 --- a/frontend/src/lib/person/PersonCard.svelte +++ b/frontend/src/lib/person/PersonCard.svelte @@ -16,7 +16,9 @@ const isUnconfirmed = $derived(person.provisional === true); // An empty / "?" last name is a separate, purely defensive concern: it must not crash the // initials branch (reading lastName[0] on null throws) and must never render a "?" initial. // It implies the placeholder glyph but — on its own — no "unbestätigt" badge. -const hasNoName = $derived(person.lastName == null || person.lastName.trim() === '' || person.lastName === '?'); +const hasNoName = $derived( + person.lastName == null || person.lastName.trim() === '' || person.lastName === '?' +); // A non-PERSON type (institution/group) gets a typed glyph; a confirmed, named person gets // initials. Provisional entries and nameless entries fall back to the neutral placeholder glyph.