- Fix lint errors.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2019-02-01 21:26:04 +02:00
parent c2118f4830
commit de9965213a
5 changed files with 15 additions and 20 deletions

View file

@ -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);
}
})
});
}