fix:location names

This commit is contained in:
2025-12-16 16:48:58 +01:00
parent f48746cc16
commit 4af0e3d7e1
2 changed files with 5 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
id: string; id: string;
latitude: string; latitude: string;
longitude: string; longitude: string;
locationName?: string | null;
createdAt: string; createdAt: string;
userId: string; userId: string;
username: string; username: string;
@@ -44,7 +45,9 @@
</svg> </svg>
<div> <div>
<h3 class="title"> <h3 class="title">
{#if location.distance !== undefined} {#if location.locationName}
{location.locationName}
{:else if location.distance !== undefined}
{formatDistance(location.distance)} away {formatDistance(location.distance)} away
{:else} {:else}
Location Location

View File

@@ -5,6 +5,7 @@
id: string; id: string;
latitude: string; latitude: string;
longitude: string; longitude: string;
locationName?: string | null;
createdAt: string; createdAt: string;
userId: string; userId: string;
username: string; username: string;