From ecc7e224e9edbf28f828232ec162c02aee75bf42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Contini?= <4092920+vilisseranen@users.noreply.github.com> Date: Wed, 24 Sep 2025 01:41:54 +0200 Subject: [PATCH] fix: show only country in audit log location if no city instead of Unknown (#977) --- frontend/src/lib/components/audit-log-list.svelte | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/src/lib/components/audit-log-list.svelte b/frontend/src/lib/components/audit-log-list.svelte index 384a2cc8..22e7e55d 100644 --- a/frontend/src/lib/components/audit-log-list.svelte +++ b/frontend/src/lib/components/audit-log-list.svelte @@ -53,9 +53,15 @@ {translateAuditLogEvent(item.event)} - {item.city && item.country ? `${item.city}, ${item.country}` : m.unknown()} + + {#if item.city && item.country} + {item.city}, {item.country} + {:else if item.country} + {item.country} + {:else} + {m.unknown()} + {/if} + {item.ipAddress} {item.device} {item.data.clientName}