Allow council motion with non-existing end (old) (#2709)

* Allow council motion with non-existing end (old)

* Update packages/page-council/src/Motions/Motion.tsx
This commit is contained in:
Jaco Greeff 2020-05-08 14:20:56 +02:00 committed by GitHub
parent a2283bffe0
commit 9c80d4bc3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,8 @@ function Motion ({ className, isMember, members, motion: { hash, proposal, votes
<Votes votes={nays} />
<td className='button'>
{bestNumber && (
end.gt(bestNumber)
// end may not be existing (older versions)
!end || end.gt(bestNumber)
? (
<Voting
hash={hash}