dummy view/state if the fingerprint check fails
This commit is contained in:
parent
194b20d4a2
commit
d2d36b6c25
2 changed files with 7 additions and 8 deletions
|
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue