-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix: fix sentry noice related to undefined currentCurrency property w… #15977
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
base: main
Are you sure you want to change the base?
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. |
@@ -23,16 +23,15 @@ export default function migrate(state: unknown) { | |||
const currencyController = | |||
state.engine.backgroundState.CurrencyRateController; | |||
|
|||
if ( | |||
!isObject(currencyController) || | |||
!hasProperty(currencyController, 'currentCurrency') |
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.
At app startup, the currentCurrency
property is sometimes not yet defined, which has been triggering a Sentry error. To reduce noise, we’ve added a silent return in that case. In parallel, we’ll investigate why this property is occasionally missing during initialization.
|
|
…hen app start
Description
Related issues
Fixes: #14504
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist