Fix community remove (#110)

This commit is contained in:
Szymon Szlachtowicz 2021-07-13 17:36:34 +02:00 committed by GitHub
parent 8d7898e9a1
commit 023c1ace73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ export const CardCommunity = ({
<CardLogoWrap>
{' '}
<CardLogo src={community.icon} alt={`${community.name} logo`} />
{community.directoryInfo && showRemoveButton && !currentVoting && (
{showRemoveButton && !currentVoting && (
<RemoveBtnMobile onClick={() => setShowRemoveModal(true)} disabled={!account} />
)}
</CardLogoWrap>
@ -89,7 +89,7 @@ export const CardCommunity = ({
<CommunityInfo>
<CardTop>
<CardHeading>{customHeading ? customHeading : community.name}</CardHeading>
{community.directoryInfo && showRemoveButton && !currentVoting && (
{showRemoveButton && !currentVoting && (
<RemoveBtn onClick={() => setShowRemoveModal(true)} disabled={!account} />
)}
</CardTop>