mirror of https://github.com/BTCPrivate/copay.git
Not show error when fetching paypro after qr scan
This commit is contained in:
parent
6a4b05010d
commit
07909b5075
|
@ -36,7 +36,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
|||
$rootScope.$emit('Local/SetTab', 'send');
|
||||
|
||||
var form = $scope.sendForm;
|
||||
if (form.address.$invalid && !self.blockUx) {
|
||||
if (form.address.$invalid && !ongoingProcess.get('fetchingPayPro')) {
|
||||
self.resetForm();
|
||||
self.error = gettext('Could not recognize a valid Bitcoin QR Code');
|
||||
}
|
||||
|
|
|
@ -34,6 +34,10 @@ angular.module('copayApp.services').factory('ongoingProcess', function($log, $ti
|
|||
ongoingProcess = {};
|
||||
};
|
||||
|
||||
root.get = function(processName) {
|
||||
return ongoingProcess[processName];
|
||||
};
|
||||
|
||||
root.set = function(processName, isOn) {
|
||||
$log.debug('ongoingProcess', processName, isOn);
|
||||
root[processName] = isOn;
|
||||
|
|
Loading…
Reference in New Issue