fix invalid qr code on Android when nothing is scanning

This commit is contained in:
Gabriel Bazán 2016-07-05 10:22:14 -03:00
parent 63e0fd1774
commit f375d8a832
1 changed files with 2 additions and 1 deletions

View File

@ -32,9 +32,10 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
var vanillaScope = ret;
var disableScannerListener = $rootScope.$on('dataScanned', function(event, data) {
if (!data) return;
self.setForm(data);
$rootScope.$emit('Local/SetTab', 'send');
var form = $scope.sendForm;
if (form.address.$invalid && !ongoingProcess.get('fetchingPayPro')) {
self.resetForm();