dummy view/state if the fingerprint check fails

This commit is contained in:
Gabriel Bazán 2017-06-13 14:53:09 -03:00
commit d2d36b6c25
2 changed files with 7 additions and 8 deletions

View file

@ -50,19 +50,15 @@ angular.module('copayApp.services')
});
scope.openModal = function() {
scope.fingerprintCheckModal.show();
checkFingerprint();
scope.checkFingerprint();
};
scope.hideModal = function() {
root.isModalOpen = false;
scope.fingerprintCheckModal.hide();
};
function checkFingerprint() {
scope.checkFingerprint = function() {
fingerprintService.check('unlockingApp', function(err) {
if (err) {
checkFingerprint();
return;
}
if (err) return;
scope.hideModal();
});
}