From 6a575088575df04c477d8bc3981d9419fd70819d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Wed, 13 Jun 2018 20:11:01 +0200 Subject: [PATCH] fix currency settings --- src/reducers/settings.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/reducers/settings.js b/src/reducers/settings.js index fc1aa1ca..40773c03 100644 --- a/src/reducers/settings.js +++ b/src/reducers/settings.js @@ -177,18 +177,12 @@ export const getOrderAccounts = (state: State) => state.settings.orderAccounts export const areSettingsLoaded = (state: State) => state.settings.loaded -// TODO: avoid this memoize hack (i thought reselect was doing it for us) -const __memoizedCurrencySettingsLocaleValues = {} export const currencySettingsLocaleSelector = ( settings: SettingsState, currency: Currency, ): CurrencySettings => { - if (__memoizedCurrencySettingsLocaleValues[currency.id]) { - return __memoizedCurrencySettingsLocaleValues[currency.id] - } const currencySettings = settings.currenciesSettings[currency.id] const val = { ...defaultsForCurrency(currency), ...currencySettings } - __memoizedCurrencySettingsLocaleValues[currency.id] = val return val }