replacing by a one liner :)

This commit is contained in:
okbel
2018-05-18 13:05:46 -03:00
parent 2524004e2a
commit 1f40d6b7bb
@@ -132,12 +132,7 @@ class People extends React.Component {
<span className={styles.email}>
{user.email
? user.email
: user.profiles.map(({ id }, i) => {
if (i === user.profiles.length - 1) {
return id;
}
return `${id}, `;
})}
: user.profiles.map(p => p.id).join(', ')}
</span>
</td>
<td className="mdl-data-table__cell--non-numeric">