Default treasury to accept (#3737)

This commit is contained in:
Jaco Greeff 2020-09-22 10:19:41 +02:00 committed by GitHub
parent 0f765e6241
commit a17d09dd4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ function Council ({ id, isDisabled, members }: Props): React.ReactElement<Props>
const { api } = useApi();
const [isOpen, toggleOpen] = useToggle();
const [accountId, setAccountId] = useState<string | null>(null);
const [councilType, setCouncilType] = useState('reject');
const [councilType, setCouncilType] = useState('accept');
const [{ proposal, proposalLength }, setProposal] = useState<ProposalState>({ proposalLength: 0 });
const threshold = Math.ceil((members?.length || 0) * getTreasuryThreshold(api));