From 1a07af9413f535469d432c9a5c04a25b7bc120a6 Mon Sep 17 00:00:00 2001 From: slowbackspace Date: Thu, 14 Mar 2019 15:51:31 +0100 Subject: [PATCH] fix fiatRates for tokens on set max btn --- src/actions/ethereum/SendFormValidationActions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions/ethereum/SendFormValidationActions.js b/src/actions/ethereum/SendFormValidationActions.js index 6c22a7a1..6a5d1cc5 100644 --- a/src/actions/ethereum/SendFormValidationActions.js +++ b/src/actions/ethereum/SendFormValidationActions.js @@ -134,7 +134,7 @@ export const recalculateTotalAmount = ($state: State): PayloadAction => ( // 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;