diff --git a/src/reducers/settings.js b/src/reducers/settings.js index 58801735..834bbef9 100644 --- a/src/reducers/settings.js +++ b/src/reducers/settings.js @@ -80,8 +80,13 @@ export const counterValueCurrencySelector = (state: State): ?Currency => export const getLanguage = (state: State) => state.settings.language -export const localeSelector = (state: State) => - `${state.settings.language}-${state.settings.region}` +export const localeSelector = (state: State) => { + const { language, region } = state.settings + if (!region) { + return language || 'en' + } + return `${language || 'en'}-${region}` +} export const getOrderAccounts = (state: State) => state.settings.orderAccounts