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 28a8948 commit 458b021
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/containers/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ const App = () => {
}

useEffect(() => {
if (sessionStorage !== undefined) {
const lang = sessionStorage.getItem(sessionStorageKeys.Lang);
const lang = sessionStorage.getItem(sessionStorageKeys.Lang);

if (typeof lang !== 'undefined' && lang !== null) {
if (lang === '') {
dispatch(setLang('en'));
}
Expand Down

0 comments on commit 458b021

Please sign in to comment.