Anonymous user should see contact link in UserCard

This commit is contained in:
Vesa Luusua 2018-06-21 14:46:08 +03:00
parent 2d9eacfc7f
commit 4046613e4b

View file

@ -83,7 +83,7 @@ const UserCard = props => {
[css.withBioMissingAbove]: !hasBio,
});
const hideContact = !currentUser || isCurrentUser;
const hideContact = currentUser && isCurrentUser;
const separator = hideContact ? null : <span className={css.linkSeparator}></span>;
const contact = hideContact ? null : (
<InlineTextButton onClick={handleContactUserClick}>