mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-27 10:48:22 +00:00
fix fiatRates for tokens on set max btn
This commit is contained in:
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…
Reference in New Issue
Block a user