Nay threshold display adjust (#3246)

This commit is contained in:
Jaco Greeff 2020-07-21 16:10:36 +02:00 committed by GitHub
parent 43665ec744
commit 493e49eda6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ function Votes ({ isAye, members, threshold, votes }: Props): React.ReactElement
useEffect((): void => {
const max = isAye
? threshold.toNumber()
: members.length - threshold.toNumber();
: (members.length - threshold.toNumber()) + 1;
setCounter(`${votes.length}/${max}`);
}, [isAye, members, threshold, votes]);