fix:location names
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
id: string;
|
||||
latitude: string;
|
||||
longitude: string;
|
||||
locationName?: string | null;
|
||||
createdAt: string;
|
||||
userId: string;
|
||||
username: string;
|
||||
@@ -44,7 +45,9 @@
|
||||
</svg>
|
||||
<div>
|
||||
<h3 class="title">
|
||||
{#if location.distance !== undefined}
|
||||
{#if location.locationName}
|
||||
{location.locationName}
|
||||
{:else if location.distance !== undefined}
|
||||
{formatDistance(location.distance)} away
|
||||
{:else}
|
||||
Location
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
id: string;
|
||||
latitude: string;
|
||||
longitude: string;
|
||||
locationName?: string | null;
|
||||
createdAt: string;
|
||||
userId: string;
|
||||
username: string;
|
||||
|
||||
Reference in New Issue
Block a user