From f190a102f9e5ca67e6af31743d7fc29e765fcadb Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Thu, 3 Aug 2023 16:41:24 +0200 Subject: [PATCH] formAuthenticationMethods is an array part of #5051 --- client/components/settings/connectionMethod.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/components/settings/connectionMethod.js b/client/components/settings/connectionMethod.js index 9eea66ec0..dd0201835 100644 --- a/client/components/settings/connectionMethod.js +++ b/client/components/settings/connectionMethod.js @@ -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();