summaryrefslogtreecommitdiffstats
path: root/client/components/main/layouts.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/components/main/layouts.js')
-rw-r--r--client/components/main/layouts.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/components/main/layouts.js b/client/components/main/layouts.js
index 2e057568..73da80e5 100644
--- a/client/components/main/layouts.js
+++ b/client/components/main/layouts.js
@@ -28,7 +28,7 @@ Template.userFormsLayout.onCreated(function() {
onReady() {
instance.currentSetting.set(Settings.findOne());
return this.stop();
- }
+ },
});
});
@@ -140,16 +140,16 @@ function getUserAuthenticationMethod(defaultAuthenticationMethod, match) {
Meteor.subscribe('user-authenticationMethod', match, {
onReady() {
const user = Users.findOne();
-
+
const authenticationMethod = user
? user.authenticationMethod
: defaultAuthenticationMethod;
-
+
resolve(authenticationMethod);
},
});
} catch(error) {
resolve(defaultAuthenticationMethod);
}
- })
+ });
}