Multisg/proxied add only with hasAccounts (#4192)

This commit is contained in:
Jaco Greeff 2020-12-14 10:54:57 +01:00 committed by GitHub
parent 9293aba89b
commit 175cfe2657
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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