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:
Thibaut Sardan 2023-06-18 11:09:23 +01:00 committed by GitHub
parent 90b3d29bf7
commit 97406d895f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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')} />

View File

@ -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)