Fix basic vote params (e.g. fellowship) (#8521)
This commit is contained in:
parent
36e4839e3c
commit
1ec47a71c8
@ -182,6 +182,7 @@ function Voting ({ className, id, isConvictionVote, isMember, members, palletVot
|
||||
<VoteBasic
|
||||
accountId={accountId}
|
||||
id={id}
|
||||
isAye={voteTypeIndex === 0}
|
||||
onChange={setParams}
|
||||
/>
|
||||
)
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user