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
2 changed files with 4 additions and 1 deletions

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}`;