Disable Fasttrack with no batching (#7577)

This commit is contained in:
Jaco 2022-05-14 07:07:11 +02:00 committed by GitHub
parent 617d77e87a
commit 1996d6949a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ function Fasttrack ({ imageHash, members, threshold }: Props): React.ReactElemen
const extrinsic = useMemo(
(): SubmittableExtrinsic<'promise'> | null => {
if (!modLocation || !proposal || !proposalCount) {
if (!modLocation || !proposal || !proposalCount || !api.tx.utility) {
return null;
}
@ -82,7 +82,7 @@ function Fasttrack ({ imageHash, members, threshold }: Props): React.ReactElemen
});
}, [api, delayBlocks, imageHash, members, votingBlocks]);
if (!modLocation) {
if (!modLocation || !api.tx.utility) {
return null;
}