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