fix(ui): guard selectPerson against empty id
Some checks failed
CI / Unit & Component Tests (push) Failing after 1m16s
CI / Backend Unit Tests (push) Failing after 2m30s
CI / Unit & Component Tests (pull_request) Failing after 1m11s
CI / Backend Unit Tests (pull_request) Failing after 2m39s

Restores early return when id is empty, preventing a wasteful
navigation to /briefwechsel with no senderId param.

Refs: #179

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-06 20:30:30 +02:00
parent e2af9f924b
commit 93be64878e

View File

@@ -86,6 +86,7 @@ function swapPersons() {
}
function selectPerson(id: string) {
if (!id) return;
senderId = id;
receiverId = '';
applyFilters();