mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 03:43:28 +10:00
Anonymous user should see contact link in UserCard
This commit is contained in:
parent
2d9eacfc7f
commit
4046613e4b
1 changed files with 1 additions and 1 deletions
|
|
@ -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}>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue