Skip to content

Commit

Permalink
Fix sessionstorage bug on deploying
Browse files Browse the repository at this point in the history
  • Loading branch information
fadihanna123 committed Sep 17, 2024
1 parent 9b6da2d commit b40cb6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/containers/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit b40cb6f

Please sign in to comment.