LP#1264746 return boolean, not promise
authorJeff Godin <jgodin@tadl.org>
Tue, 26 Mar 2019 21:29:18 +0000 (17:29 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Wed, 11 Aug 2021 21:49:54 +0000 (17:49 -0400)
Change check_email_different to return a boolean instead of a
promise. Thanks, berick!

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js

index 898f732..704e583 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;
             }
         }
     }