From d2d36b6c258cb07a3a3150d54d90e76cf4807464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Tue, 13 Jun 2017 14:53:09 -0300 Subject: [PATCH] dummy view/state if the fingerprint check fails --- src/js/services/applicationService.js | 10 +++------- www/views/modals/fingerprintCheck.html | 5 ++++- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/js/services/applicationService.js b/src/js/services/applicationService.js index fe364a514..9bb9b5048 100644 --- a/src/js/services/applicationService.js +++ b/src/js/services/applicationService.js @@ -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(); }); } diff --git a/www/views/modals/fingerprintCheck.html b/www/views/modals/fingerprintCheck.html index b5e26937a..e8c97f63e 100644 --- a/www/views/modals/fingerprintCheck.html +++ b/www/views/modals/fingerprintCheck.html @@ -1,10 +1,13 @@
-
+
+
Verify your identity
+
+