formAuthenticationMethods is an array

part of #5051
This commit is contained in:
Johannes Zellner 2023-08-03 16:41:24 +02:00
parent d0ba89d913
commit f190a102f9

View file

@ -18,7 +18,7 @@ Template.connectionMethod.onCreated(function() {
const content = $('.at-form-authentication');
// OAuth method is a separate button, so ignore it in the count
const formAuthenticationMethods = this.authenticationMethods.get().filter((method) => method.value !== 'oauth2');
if (formAuthenticationMethods > 1) {
if (formAuthenticationMethods.length > 1) {
content.show();
} else {
content.hide();