Skip to content

Commit

Permalink
fix: use optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
vinistevam committed Dec 19, 2024
1 parent 2e0d45d commit 18f8b8e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ui/pages/confirmations/hooks/useTransactionFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,7 @@ export const useTransactionFunctions = ({

const updateTransactionUsingEstimate = useCallback(
(gasFeeEstimateToUse) => {
if (!gasFeeEstimates) {
return;
}

if (!gasFeeEstimates[gasFeeEstimateToUse]) {
if (!gasFeeEstimates?.[gasFeeEstimateToUse]) {
return;
}

Expand Down

0 comments on commit 18f8b8e

Please sign in to comment.