From e64442a37338cc1a820abc7429d124772ae285a0 Mon Sep 17 00:00:00 2001 From: Samuel Casellas Date: Wed, 8 Jan 2025 22:26:41 -0500 Subject: [PATCH] edit per suggestion --- assets/js/_helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/_helpers.js b/assets/js/_helpers.js index d4952d0f..3ce1746d 100644 --- a/assets/js/_helpers.js +++ b/assets/js/_helpers.js @@ -227,7 +227,7 @@ window.helpers = window.helpers || { const matchedCookie = document.cookie.split('; ').find(cookie => cookie.startsWith(cookiePrefix)); if (matchedCookie) { const cookieBody = matchedCookie.replace(cookiePrefix, ''); - if (!cookieBody.length) return; + if (cookieBody.length === 0) return; try { return JSON.parse(decodeURIComponent(cookieBody)); } catch {