fix invalid qr code on Android when nothing is scanning
This commit is contained in:
parent
63e0fd1774
commit
f375d8a832
1 changed files with 2 additions and 1 deletions
|
|
@ -32,9 +32,10 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
||||||
var vanillaScope = ret;
|
var vanillaScope = ret;
|
||||||
|
|
||||||
var disableScannerListener = $rootScope.$on('dataScanned', function(event, data) {
|
var disableScannerListener = $rootScope.$on('dataScanned', function(event, data) {
|
||||||
|
if (!data) return;
|
||||||
|
|
||||||
self.setForm(data);
|
self.setForm(data);
|
||||||
$rootScope.$emit('Local/SetTab', 'send');
|
$rootScope.$emit('Local/SetTab', 'send');
|
||||||
|
|
||||||
var form = $scope.sendForm;
|
var form = $scope.sendForm;
|
||||||
if (form.address.$invalid && !ongoingProcess.get('fetchingPayPro')) {
|
if (form.address.$invalid && !ongoingProcess.get('fetchingPayPro')) {
|
||||||
self.resetForm();
|
self.resetForm();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue