From 4af0e3d7e11d1437c0818160b490793bdc1b7999 Mon Sep 17 00:00:00 2001 From: zias Date: Tue, 16 Dec 2025 16:48:58 +0100 Subject: [PATCH] fix:location names --- src/lib/components/locations/LocationCard.svelte | 5 ++++- src/lib/components/locations/LocationsList.svelte | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/components/locations/LocationCard.svelte b/src/lib/components/locations/LocationCard.svelte index e8aa4ef..413214e 100644 --- a/src/lib/components/locations/LocationCard.svelte +++ b/src/lib/components/locations/LocationCard.svelte @@ -6,6 +6,7 @@ id: string; latitude: string; longitude: string; + locationName?: string | null; createdAt: string; userId: string; username: string; @@ -44,7 +45,9 @@

- {#if location.distance !== undefined} + {#if location.locationName} + {location.locationName} + {:else if location.distance !== undefined} {formatDistance(location.distance)} away {:else} Location diff --git a/src/lib/components/locations/LocationsList.svelte b/src/lib/components/locations/LocationsList.svelte index 23a5d4a..9f11faf 100644 --- a/src/lib/components/locations/LocationsList.svelte +++ b/src/lib/components/locations/LocationsList.svelte @@ -5,6 +5,7 @@ id: string; latitude: string; longitude: string; + locationName?: string | null; createdAt: string; userId: string; username: string;