diff --git a/modules/util/util.js b/modules/util/util.js index 3222306af..62550a198 100644 --- a/modules/util/util.js +++ b/modules/util/util.js @@ -29,7 +29,7 @@ export function entityOrMemberSelector(ids, graph) { } export function displayName(entity) { - var localizedNameKey = 'name:' + Detect().locale.toLowerCase().split('-')[0] + var localizedNameKey = 'name:' + Detect().locale.toLowerCase().split('-')[0], name = entity.tags[localizedNameKey] || entity.tags.name || '', network = entity.tags.cycle_network || entity.tags.network; if (!name && entity.tags.ref) {