From 929acf6964190f09cadad065943d4af0df23c9bd Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 27 May 2026 14:20:00 +0200 Subject: [PATCH] style(persons): apply prettier formatting to PersonCard hasNoName derived Pure formatting (line wrap) so the file passes prettier --check; no behaviour change. Refs #667 Co-Authored-By: Claude Opus 4.7 --- frontend/src/lib/person/PersonCard.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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.