Don't allow votes when motion is closeable (#2937)

This commit is contained in:
Jaco Greeff 2020-06-11 17:42:42 +02:00 committed by GitHub
parent 8e9b6869b4
commit f1076b5596
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ function Motion ({ className = '', isMember, members, motion: { hash, proposal,
<Voters votes={ayes} />
<Voters votes={nays} />
<td className='button'>
{isVoteable && (
{isVoteable && !isCloseable && (
<Voting
hash={hash}
idNumber={index}

View File

@ -76,7 +76,7 @@ function Proposal ({ className = '', imageHash, isMember, members, prime }: Prop
))}
</td>
<td className='button'>
{isVoteable && (
{isVoteable && !isCloseable && (
<Voting
hash={imageHash}
prime={prime}