1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-28 03:08:30 +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.gasPriceNeedsUpdate = true;
newState.recommendedGasPrice = newPrice; newState.recommendedGasPrice = newPrice;
} else { } 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'); const selectedFeeLevel: ?FeeLevel = newFeeLevels.find(f => f.value === 'Normal');
if (!selectedFeeLevel) return state; if (!selectedFeeLevel) return state;
newState.recommendedGasPrice = newPrice; newState.recommendedGasPrice = newPrice;