From df7672be96a3299dca5cfe4fa90c85c8572ef9e7 Mon Sep 17 00:00:00 2001
From: Robert Lange <robert.lange@uni-leipzig.de>
Date: Thu, 25 May 2023 12:58:23 +0200
Subject: [PATCH] refs #23952 [finc] account badges: remove exclamation mark
 before element length check

---
 themes/finc/js/account_ajax.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/themes/finc/js/account_ajax.js b/themes/finc/js/account_ajax.js
index 00e90248856..43754a946af 100644
--- a/themes/finc/js/account_ajax.js
+++ b/themes/finc/js/account_ajax.js
@@ -66,7 +66,7 @@ VuFind.register('account', function Account() {
           continue;
         }
         var $element = $(_submodules[sub].selector);
-        if (!$element.length === 0) {
+        if ($element.length === 0) {
           // This could happen if the DOM is changed dynamically
           _statuses[sub] = INACTIVE;
           continue;
-- 
GitLab