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 arkpar
parent ac8533a56c
commit 2c95ee60b9

View File

@ -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}`;
}