Fix QR scanner returning null on confirm (#6122)
This commit is contained in:
parent
ac8533a56c
commit
2c95ee60b9
@ -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}`;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user