diff --git a/ui/ducks/confirm-transaction/confirm-transaction.duck.js b/ui/ducks/confirm-transaction/confirm-transaction.duck.js index c02af582a..b0dfd5636 100644 --- a/ui/ducks/confirm-transaction/confirm-transaction.duck.js +++ b/ui/ducks/confirm-transaction/confirm-transaction.duck.js @@ -203,9 +203,7 @@ export function updateTxDataAndCalculate(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'; } diff --git a/ui/selectors/confirm-transaction.js b/ui/selectors/confirm-transaction.js index 8c8abc4e3..101e522d4 100644 --- a/ui/selectors/confirm-transaction.js +++ b/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'; }