Merge pull request #851 from sharetribe/fix-user-card-contact-link

Fix user card contact link
This commit is contained in:
Vesa Luusua 2018-06-21 15:03:07 +03:00 committed by GitHub
commit 15f763c6c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -15,6 +15,8 @@ way to update this template, but currently, we follow a pattern:
## Upcoming version
* [fix] Improve slug creation (slashes were breaking rendering in some environments)
[#850](https://github.com/sharetribe/flex-template-web/pull/850)
* [fix] Anonymous user should see contact link on UserCard
[#851](https://github.com/sharetribe/flex-template-web/pull/851)
## v1.0.0

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}>