1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-13 03:48:59 +00:00

fix: auto-updated fee levels label

This commit is contained in:
Szymon Lesisz 2018-05-11 14:40:52 +02:00
parent 859b5da127
commit 5b2e642b20

View File

@ -96,7 +96,7 @@ const onGasPriceUpdated = (state: State, action: Web3UpdateGasPriceAction): Stat
newState.gasPriceNeedsUpdate = true;
newState.recommendedGasPrice = newPrice;
} else {
const newFeeLevels = getFeeLevels(state.network, newPrice, state.gasLimit);
const newFeeLevels = getFeeLevels(state.coinSymbol, newPrice, state.gasLimit);
const selectedFeeLevel: ?FeeLevel = newFeeLevels.find(f => f.value === 'Normal');
if (!selectedFeeLevel) return state;
newState.recommendedGasPrice = newPrice;