mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 12:43:11 +10:00
Show contact form on ListingPage for anonymous users too
This commit is contained in:
parent
7e17588c57
commit
4dc82ce1b2
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue