Fix proposal modal (#117)

This commit is contained in:
Szymon Szlachtowicz 2021-07-14 12:46:39 +02:00 committed by GitHub
parent f666e5b661
commit 28129ffdf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ export function ProposeModal({
<ColumnFlexDiv>
<PublicKeyInput publicKey={publicKey} setPublicKey={setPublicKey} />
<ProposingData>
{communityFound ? <CardCommunity community={communityFound} /> : loading && <CommunitySkeleton />}
{communityFound ? <CardCommunity community={communityFound} /> : loading && publicKey && <CommunitySkeleton />}
{communityFound && !communityFound.validForAddition && (
<WarningWrap>
<Warning
@ -71,7 +71,7 @@ export function ProposeModal({
/>
</WarningWrap>
)}
{((communityFound && communityFound.validForAddition) || loading) && (
{((communityFound && communityFound.validForAddition) || loading) && publicKey && (
<VoteProposeWrap>
<VotePropose
availableAmount={availableAmount}