From ce9ab71461581e591426f6ed63c29d3ae8239e72 Mon Sep 17 00:00:00 2001 From: ddelpiano Date: Wed, 14 May 2025 10:36:16 +0200 Subject: [PATCH] fix for empty expire --- src/App.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.jsx b/src/App.jsx index c3d80d0e..fd91dbec 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -46,7 +46,7 @@ function MainContent() { // check if cookie is expired if (!user) { const sessionCookie = cookies.session; - const expires = new Date(cookiesInfo.expires); + const expires = new Date(cookiesInfo?.expires); const today = new Date(); if (sessionCookie === cookiesInfo?.value && expires > today) { const userData = JSON.parse(localStorage.getItem(API_CONFIG.SESSION_DATA.SETTINGS));