Disable multisig button is no weight retrieved (#7580)
This commit is contained in:
parent
51f4d74962
commit
650a4167ef
@ -51,7 +51,7 @@ function MultisigApprove ({ className = '', onClose, ongoing, threshold, who }:
|
||||
const { allAccounts } = useAccounts();
|
||||
const [callHex, setCallHex] = useState<string>('');
|
||||
const [{ callData, callError, callInfo }, setCallData] = useState<CallData>(EMPTY_CALL);
|
||||
const [callWeight] = useWeight(callData);
|
||||
const [callWeight, callLength] = useWeight(callData);
|
||||
const [hash, setHash] = useState<string | null>(() => ongoing[0][0].toHex());
|
||||
const [{ isMultiCall, multisig }, setMultisig] = useState<MultiInfo>(() => ({ isMultiCall: false, multisig: null }));
|
||||
const [isCallOverride, setCallOverride] = useState(true);
|
||||
@ -277,7 +277,7 @@ function MultisigApprove ({ className = '', onClose, ongoing, threshold, who }:
|
||||
accountId={signatory}
|
||||
extrinsic={tx}
|
||||
icon={isAye ? 'check' : 'times'}
|
||||
isDisabled={!tx || (isAye && !whoFilter.length)}
|
||||
isDisabled={!tx || (isAye && !whoFilter.length) || !callLength}
|
||||
label={isAye ? 'Approve' : 'Reject'}
|
||||
onStart={onClose}
|
||||
/>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user