diff --git a/screen/wallets/scanQrWif.js b/screen/wallets/scanQrWif.js index 1fdf9347c..2b99629b2 100644 --- a/screen/wallets/scanQrWif.js +++ b/screen/wallets/scanQrWif.js @@ -25,6 +25,12 @@ export default class ScanQrWif extends React.Component { onBarCodeScanned = async ret => { if (RNCamera.Constants.CameraStatus === RNCamera.Constants.CameraStatus.READY) this.cameraRef.pausePreview(); + if (+new Date() - this.lastTimeIveBeenHere < 6000) { + this.lastTimeIveBeenHere = +new Date(); + return; + } + this.lastTimeIveBeenHere = +new Date(); + this.setState({ isLoading: true }); if (ret.data[0] === '6') { // password-encrypted, need to ask for password and decrypt console.log('trying to decrypt...');