diff --git a/js/src/views/Signer/components/TransactionPendingForm/TransactionPendingFormConfirm/transactionPendingFormConfirm.js b/js/src/views/Signer/components/TransactionPendingForm/TransactionPendingFormConfirm/transactionPendingFormConfirm.js index f6c4883a8..e327a0322 100644 --- a/js/src/views/Signer/components/TransactionPendingForm/TransactionPendingFormConfirm/transactionPendingFormConfirm.js +++ b/js/src/views/Signer/components/TransactionPendingForm/TransactionPendingFormConfirm/transactionPendingFormConfirm.js @@ -407,7 +407,11 @@ export default class TransactionPendingFormConfirm extends Component { onScan = (signature) => { const { chainId, rlp, tx, data, decrypt } = this.state.qr; - if (signature && signature.substr(0, 2) !== '0x') { + if (!signature) { + return; + } + + if (signature.substr(0, 2) !== '0x') { signature = `0x${signature}`; }