Fix basic vote params (e.g. fellowship) (#8521)

This commit is contained in:
Jaco 2022-12-12 17:14:54 +02:00 committed by GitHub
parent 36e4839e3c
commit 1ec47a71c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -182,6 +182,7 @@ function Voting ({ className, id, isConvictionVote, isMember, members, palletVot
<VoteBasic
accountId={accountId}
id={id}
isAye={voteTypeIndex === 0}
onChange={setParams}
/>
)

View File

@ -5,7 +5,7 @@ import type { VoteTypeProps as Props } from './types';
import React, { useEffect } from 'react';
function VoteBasic ({ id, isAye, onChange }: Props): React.ReactElement<Props> | null {
function VoteBasic ({ id, isAye = false, onChange }: Props): React.ReactElement<Props> | null {
useEffect((): void => {
onChange([
id,