Skip to content

Commit

Permalink
use name:en if available for issues table
Browse files Browse the repository at this point in the history
  • Loading branch information
secondl1ght committed Mar 15, 2024
1 parent 7ea6412 commit 20c6693
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ export const getIssues = (elements: Element[]): Issues => {
if (!element.tags.issues?.length) return;

element.tags.issues.forEach((issue) => {
issues.push({ ...issue, merchantName: element.osm_json.tags?.name, merchantId: element.id });
issues.push({
...issue,
merchantName: element.osm_json.tags?.name || element.osm_json.tags?.['name:en'],
merchantId: element.id
});
});
});

Expand Down

0 comments on commit 20c6693

Please sign in to comment.