Adjust multisig check (#3182)

* Cleanup multisig check

* Remove finalized without grandpa
This commit is contained in:
Jaco Greeff 2020-07-14 09:26:59 +02:00 committed by GitHub
parent d936db58de
commit 94193941fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -218,7 +218,7 @@ function Overview ({ className = '', onStatusChange }: Props): React.ReactElemen
)}
<Button
icon='plus'
isDisabled={!api.tx.multisig && api.tx.utility}
isDisabled={!(api.tx.multisig || api.tx.utility)}
label={t<string>('Multisig')}
onClick={toggleMultisig}
/>

View File

@ -40,9 +40,11 @@ function Summary (): React.ReactElement {
<SummarySession withEra={false} />
</section>
<section>
<CardSummary label={t<string>('finalized')}>
<BestFinalized />
</CardSummary>
{api.query.grandpa && (
<CardSummary label={t<string>('finalized')}>
<BestFinalized />
</CardSummary>
)}
<CardSummary label={t<string>('best')}>
<BestNumber />
</CardSummary>