refix the instance of unsafe destructuring I had introduced and fixed and then reintroduced (#11428)

feature/default_network_editable
Alex Donesky 3 years ago committed by GitHub
parent 36d3770b42
commit 433cf6339d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ui/selectors/confirm-transaction.js

@ -223,9 +223,7 @@ export const transactionFeeSelector = function (state, txData) {
// if the gas price from our infura endpoint is null or undefined
// use the metaswap average price estimation as a fallback
let {
txParams: { gasPrice },
} = txData;
let { txParams: { gasPrice } = {} } = txData;
if (!gasPrice) {
gasPrice = getAveragePriceEstimateInHexWEI(state) || '0x0';

Loading…
Cancel
Save