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 {