From 5be7a9c13cb0ea0d32d57fe465f37fa4eebe65d8 Mon Sep 17 00:00:00 2001 From: Erko Bridee Date: Sun, 27 May 2018 06:15:02 -0300 Subject: [PATCH] small code fix --- src/chat/states/ducks/settings/operations.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chat/states/ducks/settings/operations.js b/src/chat/states/ducks/settings/operations.js index 8b218c9..0fa6a7f 100644 --- a/src/chat/states/ducks/settings/operations.js +++ b/src/chat/states/ducks/settings/operations.js @@ -14,9 +14,9 @@ export const update = ( field, value ) => ( dispatch, getState, api ) => { export const restore = () => ( dispatch, getState, api ) => { - api.changeLanguage( constants.defaultSettings.locale ); + dispatch( actions.restore() ); - dispatch( actions.restore ); + api.changeLanguage( constants.defaultSettings.locale ); };