fix(frontend): various fixes

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2024-01-05 16:16:24 +01:00
parent c12df03b5d
commit 456dc36f64
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773
2 changed files with 4 additions and 1 deletions

View file

@ -39,7 +39,9 @@
<o-icon :icon="addressToPoiInfos(option).poiIcon.icon" />
<b>{{ addressToPoiInfos(option).name }}</b>
</p>
<small>{{ addressToPoiInfos(option).alternativeName }}</small>
<p class="text-small">
{{ addressToPoiInfos(option).alternativeName }}
</p>
</template>
<template #empty>
<template v-if="isFetching">{{ t("Searching") }}</template>

View file

@ -155,6 +155,7 @@ export function iconForAddress(address: IAddress): IPOIIcon {
}
export function addressFullName(address: IAddress): string {
if (!address) return "";
const { name, alternativeName } = addressToPoiInfos(address);
if (name && alternativeName) {
return `${name}, ${alternativeName}`;