fix fiatRates for tokens on set max btn

pull/448/head
slowbackspace 5 years ago
parent 7a6a3d974e
commit 1a07af9413

@ -134,7 +134,7 @@ export const recalculateTotalAmount = ($state: State): PayloadAction<State> => (
// calculate amount in local currency
const { localCurrency } = getState().sendFormEthereum;
const fiatRates = getState().fiat.find(f => f.network === state.networkName);
const fiatRates = getState().fiat.find(f => f.network === state.currency.toLowerCase());
const localAmount = toFiatCurrency(state.amount, localCurrency, fiatRates);
if (localAmount) {
state.localAmount = localAmount;

Loading…
Cancel
Save