From 4dc82ce1b2d2fbbd7e11ae13ebf35f129a4aeb41 Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Fri, 5 Jan 2018 15:42:52 +0200 Subject: [PATCH] Show contact form on ListingPage for anonymous users too --- src/containers/ListingPage/ListingPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/containers/ListingPage/ListingPage.js b/src/containers/ListingPage/ListingPage.js index eb798d9f..3b6268b6 100644 --- a/src/containers/ListingPage/ListingPage.js +++ b/src/containers/ListingPage/ListingPage.js @@ -317,7 +317,7 @@ export class ListingPageComponent extends Component { const userAndListingAuthorAvailable = !!(currentUser && authorAvailable); const isOwnListing = userAndListingAuthorAvailable && currentListing.author.id.uuid === currentUser.id.uuid; - const showContactUser = currentUser && !isOwnListing; + const showContactUser = !currentUser || (currentUser && !isOwnListing); const currentAuthor = authorAvailable ? currentListing.author : null; const ensuredAuthor = ensureUser(currentAuthor);