Browse Source

fix tests

master
Gaëtan Renaudeau 7 years ago
parent
commit
01e7800319
  1. 9
      src/reducers/settings.js

9
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

Loading…
Cancel
Save