Fix QR scanner returning null on confirm (#6122)

This commit is contained in:
Jaco Greeff 2017-07-21 21:19:38 +02:00 committed by Arkadiy Paronyan
parent 3605593d37
commit c369bba03b

View File

@ -407,7 +407,11 @@ export default class TransactionPendingFormConfirm extends Component {
onScan = (signature) => { onScan = (signature) => {
const { chainId, rlp, tx, data, decrypt } = this.state.qr; 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}`; signature = `0x${signature}`;
} }