Skip to content

Commit

Permalink
Handle initial retryTxMeta set if no transaction is passed to useGasF…
Browse files Browse the repository at this point in the history
…eeInputs
  • Loading branch information
danjm committed Apr 7, 2022
1 parent 1923a4e commit 9e173c8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ui/hooks/gasFeeInput/useGasFeeInputs.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ export function useGasFeeInputs(
editGasMode = EDIT_GAS_MODES.MODIFY_IN_PLACE,
) {
const [retryTxMeta, setRetryTxMeta] = useState({
txParams: _transaction.txParams,
id: _transaction.id,
userFeeLevel: _transaction.userFeeLevel,
originalGasEstimate: _transaction.originalGasEstimate,
userEditedGasLimit: _transaction.userEditedGasLimit,
txParams: _transaction?.txParams,
id: _transaction?.id,
userFeeLevel: _transaction?.userFeeLevel,
originalGasEstimate: _transaction?.originalGasEstimate,
userEditedGasLimit: _transaction?.userEditedGasLimit,
});

const transaction = editGasModeIsSpeedUpOrCancel(editGasMode)
Expand Down

0 comments on commit 9e173c8

Please sign in to comment.