Fix delegation with x0.1 conviction and typo (#9599)
* typo, conviction, activityFrom * Update packages/page-referenda/src/Referenda/Delegate/index.tsx Co-authored-by: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> * Update packages/page-referenda/src/Referenda/Delegate/index.tsx * Update packages/page-referenda/src/Referenda/Delegate/index.tsx --------- Co-authored-by: Jaco <jacogr@gmail.com>
This commit is contained in:
parent
90b3d29bf7
commit
97406d895f
@ -58,7 +58,7 @@ function Activity ({ allowEmpty, className, palletReferenda, tracks, value }: Pr
|
||||
))}
|
||||
</Table>
|
||||
)
|
||||
: <MarkWarning content={t<string>('This account has no voting/delating activity in the chain state')} />
|
||||
: <MarkWarning content={t<string>('This account has no voting/delegating activity in the chain state')} />
|
||||
}
|
||||
{!allowEmpty && infos.some(([{ delegating }]) => delegating) && (
|
||||
<MarkWarning content={t<string>('This account has some delegations in itself')} />
|
||||
|
||||
@ -93,7 +93,7 @@ function Delegate ({ className, palletReferenda, palletVote, tracks }: Props): R
|
||||
);
|
||||
|
||||
const extrinsic = useMemo(
|
||||
() => balance && conviction && toAccount && includeTracks
|
||||
() => balance && conviction >= 0 && toAccount && includeTracks
|
||||
? isAllTracks
|
||||
? api.tx.utility.forceBatch(includeTracks.map((trackId) =>
|
||||
api.tx[palletVote as 'convictionVoting'].delegate(trackId, toAccount, conviction, balance)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user