Skip to content

Commit

Permalink
Add return statement to EmailHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Campbell committed Oct 21, 2020
1 parent 3949352 commit e0827c4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/EmailHeader/EmailHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ export default function EmailHeader({ datetime, from_name, from_email, to, cc })

let recipientString = "";
recipients.map( (recipient, index) => {
recipientString += buildEmailNameString(recipient.name, recipient.email)
index < recipients.length - 1 ? recipientString += ", " : recipientString += ""
recipientString += buildEmailNameString(recipient.name, recipient.email);
index < recipients.length - 1 ? recipientString += ", " : recipientString += "";
return true;
})
return recipientString;
};
Expand Down

0 comments on commit e0827c4

Please sign in to comment.