MultiSig reject filter adjustment (#4075)

This commit is contained in:
Jaco Greeff 2020-11-26 12:25:20 +01:00 committed by GitHub
parent d57f1b129c
commit ebcabeb596
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,6 +140,8 @@ function MultisigApprove ({ className = '', onClose, ongoing, threshold, who }:
[hash]
);
const isAye = type === 'aye';
return (
<Modal
className={className}
@ -234,9 +236,9 @@ function MultisigApprove ({ className = '', onClose, ongoing, threshold, who }:
<TxButton
accountId={signatory}
extrinsic={tx}
icon={type === 'aye' ? 'check' : 'times'}
isDisabled={!tx || !whoFilter.length}
label={type === 'aye' ? 'Approve' : 'Reject'}
icon={isAye ? 'check' : 'times'}
isDisabled={!tx || (isAye && !whoFilter.length)}
label={isAye ? 'Approve' : 'Reject'}
onStart={onClose}
/>
</Modal.Actions>