From b40cb6f217d8860d185be0f591e98c0cec80714d Mon Sep 17 00:00:00 2001 From: Fadi Hanna Date: Tue, 17 Sep 2024 04:20:30 +0200 Subject: [PATCH] Fix sessionstorage bug on deploying --- src/containers/App.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/containers/App.tsx b/src/containers/App.tsx index b2b46c8..5763700 100644 --- a/src/containers/App.tsx +++ b/src/containers/App.tsx @@ -30,7 +30,8 @@ const App = () => { } useEffect(() => { - const lang = sessionStorage.getItem(sessionStorageKeys.Lang); + const lang = + sessionStorage && sessionStorage.getItem(sessionStorageKeys.Lang); if (lang === '') { dispatch(setLang('en'));