From e6ba4d34251229a01f945591a7977b9020dbb90b Mon Sep 17 00:00:00 2001 From: Ezerous Date: Thu, 3 Dec 2020 20:31:47 +0200 Subject: [PATCH] Hide post creation ui for guests --- packages/concordia-app/src/views/Topic/TopicView/index.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/concordia-app/src/views/Topic/TopicView/index.jsx b/packages/concordia-app/src/views/Topic/TopicView/index.jsx index c3fa8cf..4ad2de4 100644 --- a/packages/concordia-app/src/views/Topic/TopicView/index.jsx +++ b/packages/concordia-app/src/views/Topic/TopicView/index.jsx @@ -29,6 +29,7 @@ const TopicView = (props) => { const drizzleInitialized = useSelector((state) => state.drizzleStatus.initialized); const drizzleInitializationFailed = useSelector((state) => state.drizzleStatus.failed); const userAddress = useSelector((state) => state.user.address); + const hasSignedUp = useSelector((state) => state.user.hasSignedUp); const getTopicResults = useSelector((state) => state.contracts[FORUM_CONTRACT].getTopic); const topics = useSelector((state) => state.orbitData.topics); const users = useSelector((state) => state.orbitData.users); @@ -174,7 +175,7 @@ const TopicView = (props) => { - {topicSubject !== null && postIds !== null && ( + {topicSubject !== null && postIds !== null && hasSignedUp && (