Skip to content

Commit a1c0554

Browse files
committed
refactor: prioritize local branch names in display
This commit enhances the display functionality for local units by first showcasing the local branch name, if available, before falling back to the English name.
1 parent 8084089 commit a1c0554

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.changeset/lazy-camels-wash.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@ifrc-go/ui": patch
3+
---
4+
5+
Prioritize local name ahead of English name for local units
6+
Update source links and texts for Country Risk Watch section

app/src/views/CountryNsOverviewContextAndStructure/NationalSocietyLocalUnitsMap/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,9 @@ function NationalSocietyLocalUnitsMap(props: Props) {
346346
external
347347
withLinkIcon
348348
>
349-
{isTruthyString(selectedLocalUnitDetail.english_branch_name)
350-
? selectedLocalUnitDetail.english_branch_name
351-
: selectedLocalUnitDetail.local_branch_name}
349+
{isTruthyString(selectedLocalUnitDetail.local_branch_name)
350+
? selectedLocalUnitDetail.local_branch_name
351+
: selectedLocalUnitDetail.english_branch_name}
352352
</Link>
353353
)}
354354
childrenContainerClassName={styles.popupContent}

0 commit comments

Comments
 (0)