From 712228bd068a4c30448fbd73459fb2ae347ab91e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Rodriguez=20Ve=CC=81lez?= Date: Tue, 18 Sep 2018 02:51:44 -0400 Subject: [PATCH] Updated QR Code scan call --- screen/wallets/scanQrWif.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/screen/wallets/scanQrWif.js b/screen/wallets/scanQrWif.js index 235ec6f9..d8ca7866 100644 --- a/screen/wallets/scanQrWif.js +++ b/screen/wallets/scanQrWif.js @@ -24,14 +24,14 @@ export default class ScanQrWif extends React.Component { type: Camera.Constants.Type.back, }; - async onBarCodeRead(ret) { + async onBarCodeScanned(ret) { if (+new Date() - this.lastTimeIveBeenHere < 3000) { this.lastTimeIveBeenHere = +new Date(); return; } this.lastTimeIveBeenHere = +new Date(); - console.log('onBarCodeRead', ret); + console.log('onBarCodeScanned', ret); if (ret.data[0] === '6') { // password-encrypted, need to ask for password and decrypt console.log('trying to decrypt...'); @@ -170,7 +170,7 @@ export default class ScanQrWif extends React.Component { ); } else { return ( - this.onBarCodeRead(ret)}> + this.onBarCodeScanned(ret)}>