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:
parent
859b5da127
commit
5b2e642b20
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user