mirror of
https://github.com/wassname/talk.git
synced 2026-07-12 19:30:13 +08:00
replacing by a one liner :)
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user