From 41b9d4d9815ef57ded7c258220111246dee6e5b5 Mon Sep 17 00:00:00 2001
From: Robert Lange <robert.lange@uni-leipzig.de>
Date: Mon, 14 Dec 2020 11:31:39 +0100
Subject: [PATCH] refs #18034 [finc] check for null in cart-finc

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

diff --git a/themes/finc/js/cart-finc.js b/themes/finc/js/cart-finc.js
index fc1ddd56c9e..0fbaf1015f4 100644
--- a/themes/finc/js/cart-finc.js
+++ b/themes/finc/js/cart-finc.js
@@ -1,7 +1,7 @@
 /* #18034 - inform screen reader about changes, eventually intregrate by PR into bootstrap cart.js - RL */
 $(document).ready(function() {
   var cart = document.getElementById("cartSummary");
-  if (cart !== undefined) {
+  if (cart != null) {
     cart.setAttribute("aria-live", "polite");
     cart.setAttribute("aria-atomic", "true");
   }
-- 
GitLab