Skip to content

Commit 8cd88ac

Browse files
authored
Merge pull request #1100 from IFRCGo/fix/add-table-details
Focal point phone and email in local unit table
2 parents b1ec89c + 56ebaa4 commit 8cd88ac

File tree

1 file changed

+2
-2
lines changed
  • app/src/views/CountryNsOverviewContextAndStructure/NationalSocietyLocalUnits/LocalUnitsTable

1 file changed

+2
-2
lines changed

app/src/views/CountryNsOverviewContextAndStructure/NationalSocietyLocalUnits/LocalUnitsTable/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,12 @@ function LocalUnitsTable() {
106106
createStringColumn<LocalUnitsTableListItem, number>(
107107
'phone',
108108
strings.localUnitsTablePhoneNumber,
109-
(item) => item.phone,
109+
(item) => chooseName(item.phone, item?.health_details?.focal_point_phone_number),
110110
),
111111
createStringColumn<LocalUnitsTableListItem, number>(
112112
'email',
113113
strings.localUnitsTableEmail,
114-
(item) => item.email,
114+
(item) => chooseName(item.email, item?.health_details?.focal_point_email),
115115
),
116116
createBooleanColumn<LocalUnitsTableListItem, number>(
117117
'validated',

0 commit comments

Comments
 (0)