diff --git a/packages/ui-app/src/TxButton.tsx b/packages/ui-app/src/TxButton.tsx index aacb088886..64fd1ee6a6 100644 --- a/packages/ui-app/src/TxButton.tsx +++ b/packages/ui-app/src/TxButton.tsx @@ -50,8 +50,8 @@ class TxButtonInner extends React.PureComponent { isSending: false } as State; - static getDerivedStateFromProps ({ api, params = [], txqueue = [], tx = '', extrinsic: propsExtrinsic }: InnerProps): State | null { - if (!propsExtrinsic && (!tx || tx.length === 0)) { + static getDerivedStateFromProps ({ api, isDisabled, params = [], txqueue = [], tx = '', extrinsic: propsExtrinsic }: InnerProps): State | null { + if (isDisabled || !propsExtrinsic && (!tx || tx.length === 0)) { return null; }