LP#1264746 return boolean, not promise collab/khuckins/lp1264746_email_password_reset_button_rebase
authorJeff Godin <jgodin@tadl.org>
Tue, 26 Mar 2019 21:29:18 +0000 (17:29 -0400)
committerKyle Huckins <khuckins@catalyte.io>
Fri, 19 Mar 2021 00:32:30 +0000 (00:32 +0000)
Change check_email_different to return a boolean instead of a
promise. Thanks, berick!

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js

index 9078f43..55e0ce0 100644 (file)
@@ -168,7 +168,7 @@ angular.module('egCoreMod')
     service.check_email_different = function(email) {
         if (service.existing_patron) {
             if (email != service.existing_patron.email()) {
-                return $q.when(true);
+                return true;
             }
         }
     }