Skip to content

Commit bcbcf38

Browse files
committed
Solved comments
1 parent 6d30535 commit bcbcf38

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/components/LanguageWrapper/index.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@ import { availableLocales, browserLocale, messages } from 'utils/index';
88
const LanguageWrapper = ({ children }) => {
99
const dispatch = useDispatch();
1010

11-
let { locale } =
12-
useSelector(
13-
(state) => ({
14-
locale: state.preferences.locale,
15-
}),
16-
shallowEqual
17-
) || localStorage.getItem('locale');
11+
let { locale } = useSelector(
12+
(state) => ({
13+
locale: state.preferences.locale,
14+
}),
15+
shallowEqual
16+
);
1817

1918
if (!locale) {
2019
locale = availableLocales.includes(browserLocale) ? browserLocale : 'en';

0 commit comments

Comments
 (0)