summaryrefslogtreecommitdiffstats
path: root/client/components/main
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-02-01 21:26:04 +0200
committerLauri Ojansivu <x@xet7.org>2019-02-01 21:26:04 +0200
commitde9965213ae32f4c314dd1a791891e01d12da1dd (patch)
treed972e460c06dda599d642b7c0fac123ed1c50283 /client/components/main
parentc2118f4830020631ab228c59c8b9247a13655ae6 (diff)
downloadwekan-de9965213ae32f4c314dd1a791891e01d12da1dd.tar.gz
wekan-de9965213ae32f4c314dd1a791891e01d12da1dd.tar.bz2
wekan-de9965213ae32f4c314dd1a791891e01d12da1dd.zip
- Fix lint errors.
Thanks to xet7 !
Diffstat (limited to 'client/components/main')
-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);
}
- })
+ });
}