diff --git a/front/src/store/ui.ts b/front/src/store/ui.ts index 56ff605b8..9baf941ce 100644 --- a/front/src/store/ui.ts +++ b/front/src/store/ui.ts @@ -225,7 +225,9 @@ const store: Module = { commit('notifications', { type: 'pendingReviewRequests', count: response.data.count }) }, - async currentLanguage ({ commit, rootState }, value) { + async currentLanguage ({ commit, rootState, state }, value) { + if (state.selectedLanguage && state.currentLanguage === value) return + commit('currentLanguage', value) if (rootState.auth.authenticated) { await axios.post('users/settings', { language: value })