Skip to content

Commit 133b139

Browse files
committed
feat: show alternative office name in dropdown
1 parent aa0cf6c commit 133b139

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/components/Editor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@ export default function Editor() {
165165

166166
const organisations = organisationData.flatMap(data =>
167167
data.organisations.map(organisation => ({
168-
text: getLocalizedText(organisation.name, i18n.language),
168+
text: getLocalizedText(organisation.name, i18n.language) + (organisation.alternativeName ? ` (${getLocalizedText(organisation.alternativeName, i18n.language)})` : ""),
169169
value: organisation.id,
170-
group: getLocalizedText(data.name, i18n.language) + " (" + getLocalizedText(data.abbreviation, i18n.language) + ")",
170+
group: `${getLocalizedText(data.name, i18n.language)} (${getLocalizedText(data.abbreviation, i18n.language)})`,
171171
}))
172172
);
173173

0 commit comments

Comments
 (0)