-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: gasFeeEstimates
property undefined
#29312
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Builds ready [0c8d002]
Page Load Metrics (1712 ± 172 ms)
Bundle size diffs
|
Builds ready [2e0d45d]
Page Load Metrics (1661 ± 35 ms)
Bundle size diffs
|
if (!gasFeeEstimates) { | ||
return; | ||
} | ||
|
||
if (!gasFeeEstimates[gasFeeEstimateToUse]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we achieve the same with optional chaining here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, pushed here.
Builds ready [18f8b8e]
Page Load Metrics (1664 ± 66 ms)
Bundle size diffs
|
Description
This PR fixes an issue created by Sentry where the property
gasFeeEstimates
isundefined
.Added an early return when the property is
undefined
and covered the scenario with unit tests.Related issues
Fixes: #27501 #27241
Manual testing steps
Screenshots/Recordings
block-gas-api.webm
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist