Jelajahi Sumber

formAuthenticationMethods is an array

part of #5051
Johannes Zellner 1 tahun lalu
induk
melakukan
f190a102f9
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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');
     const content = $('.at-form-authentication');
     // OAuth method is a separate button, so ignore it in the count
     // OAuth method is a separate button, so ignore it in the count
     const formAuthenticationMethods = this.authenticationMethods.get().filter((method) => method.value !== 'oauth2');
     const formAuthenticationMethods = this.authenticationMethods.get().filter((method) => method.value !== 'oauth2');
-    if (formAuthenticationMethods > 1) {
+    if (formAuthenticationMethods.length > 1) {
       content.show();
       content.show();
     } else {
     } else {
       content.hide();
       content.hide();