Skip to content

Commit 4230037

Browse files
committed
Customize text if current location is not available
1 parent 93f2029 commit 4230037

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/components/TheSidebar.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ const handleSelectPin = (pin) => {
142142
<i class="fas fa-location-dot me-1 small flex-shrink-0" />
143143
<span class="text-truncate">{{ pin.distanceText }} away</span>
144144
</div>
145+
<div v-else-if="pin.latitude && pin.longitude">
146+
<i class="fas fa-location-pin-lock me-1 small flex-shrink-0" />
147+
<span class="text-truncate">Unknown distance</span>
148+
</div>
145149
<div v-else>
146150
<i class="fas fa-location-pin-lock me-1 small flex-shrink-0" />
147151
<span class="text-truncate">No location</span>

0 commit comments

Comments
 (0)