Skip to content

Commit 42028df

Browse files
authored
Merge pull request #340 from CodeForPhilly/310/360-view-shows-null-for-missing-fields
Show empty contact field instead of null
2 parents 9d9f9a2 + 1b5c5d9 commit 42028df

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/client/src/pages/DataView360/View/components/ContactInfo.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ class ContactInfo extends Component {
2626

2727
populate_participant_with_data_source(participant, participantData) {
2828
return {
29-
first_name: _.get(participantData, "first_name") || _.get(participant, "first_name"),
30-
last_name: _.get(participantData, "last_name") || _.get(participant, "last_name"),
31-
email: _.get(participantData, "email") || _.get(participant, "email"),
32-
mobile: _.get(participantData, "mobile") || _.get(participant, "mobile"),
33-
city: _.get(participantData, "city") || _.get(participant, "city"),
34-
street_and_number: _.get(participantData, "street_and_number") || _.get(participant, "street_and_number")
29+
first_name: _.get(participantData, "first_name") || _.get(participant, "first_name") || "",
30+
last_name: _.get(participantData, "last_name") || _.get(participant, "last_name") || "",
31+
email: _.get(participantData, "email") || _.get(participant, "email") || "",
32+
mobile: _.get(participantData, "mobile") || _.get(participant, "mobile") || "",
33+
city: _.get(participantData, "city") || _.get(participant, "city") || "",
34+
street_and_number: _.get(participantData, "street_and_number") || _.get(participant, "street_and_number") || ""
3535
};
3636
}
3737

0 commit comments

Comments
 (0)