metadata: fix text when address lookup fails (close #719)

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/743/head
Varun Patil 2023-07-03 12:07:43 -07:00
parent 9d9ef6654e
commit a87c29a2fa
1 changed files with 9 additions and 1 deletions

View File

@ -279,7 +279,15 @@ export default defineComponent({
},
address(): string | undefined {
if (this.baseInfo.address) {
return this.baseInfo.address;
}
if (this.lat && this.lon) {
return `${this.lat.toFixed(6)}, ${this.lon.toFixed(6)}`;
}
return undefined;
},
lat(): number {