mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
refix the instance of unsafe destructuring I had introduced and fixed and then reintroduced (#11428)
This commit is contained in:
parent
36d3770b42
commit
433cf6339d
@ -223,9 +223,7 @@ export const transactionFeeSelector = function (state, txData) {
|
|||||||
|
|
||||||
// if the gas price from our infura endpoint is null or undefined
|
// if the gas price from our infura endpoint is null or undefined
|
||||||
// use the metaswap average price estimation as a fallback
|
// use the metaswap average price estimation as a fallback
|
||||||
let {
|
let { txParams: { gasPrice } = {} } = txData;
|
||||||
txParams: { gasPrice },
|
|
||||||
} = txData;
|
|
||||||
|
|
||||||
if (!gasPrice) {
|
if (!gasPrice) {
|
||||||
gasPrice = getAveragePriceEstimateInHexWEI(state) || '0x0';
|
gasPrice = getAveragePriceEstimateInHexWEI(state) || '0x0';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user