Skip to content

Commit 0d5bef3

Browse files
committed
Only add the company name if it is not empty.
1 parent f0b6d7d commit 0d5bef3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web-ui/src/components/feedback_request_confirmation/FeedbackRequestConfirmation.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const FeedbackRequestConfirmation = () => {
105105
fromArray.forEach(id => {
106106
let recipient = externalRecipients.find(recipient => recipient.id === id);
107107
if (recipient) {
108-
recipientProfiles.push(recipient.firstName + ' ' + recipient.lastName + ' (' + recipient.companyName + ')');
108+
recipientProfiles.push(recipient.firstName + ' ' + recipient.lastName + (recipient.companyName ? ' (' + recipient.companyName + ')' : ''));
109109
}
110110
});
111111
}

0 commit comments

Comments
 (0)