store locale in localStorage only if user is not logged in
This commit is contained in:
@@ -8,7 +8,7 @@ export const visitPage = () => (dispatch) => {
|
||||
};
|
||||
|
||||
export const setLanguage = (language) => (dispatch, getState) => {
|
||||
if(!getState().auth.isAuthenticated){
|
||||
if(!getState().auth.progress && !getState().auth.isAuthenticated){
|
||||
window.localStorage.setItem('locale', language);
|
||||
}
|
||||
dispatch({
|
||||
|
||||
Reference in New Issue
Block a user