Fix QR scanner returning null on confirm (#6122)
This commit is contained in:
parent
3605593d37
commit
c369bba03b
@ -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