Explorar o código

formAuthenticationMethods is an array

part of #5051
Johannes Zellner hai 1 ano
pai
achega
f190a102f9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      client/components/settings/connectionMethod.js

+ 1 - 1
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();