Skip to content
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

Add access protection (optional-chaining) to the getNativeCurrencyImage selector in case it is the source of a mysterious bug on firefox #15425

Merged

Conversation

adonesky1
Copy link
Contributor

I'm struggling to reproduce #15397, but @danjm and I believe the attempt to call toUpperCase() without protecting against the case where what's returned by getNativeCurrency(state) is undefined (or is not a string?) may be the culprit.

…it is the source of a mysterious bug on firefox
@adonesky1 adonesky1 requested a review from a team as a code owner August 2, 2022 21:07
@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2022

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.

@PeterYinusa PeterYinusa added this to the v10.18.2 milestone Aug 2, 2022
@metamaskbot
Copy link
Collaborator

Builds ready [f852d17]
Page Load Metrics (1778 ± 55 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint931991242412
domContentLoaded15442024176712158
load15442024177811455
domInteractive15442024176712158

highlights:

storybook

@adonesky1 adonesky1 merged commit 713399c into develop Aug 3, 2022
@adonesky1 adonesky1 deleted the add-optional-chaining-nativeCurrencyImage-selector branch August 3, 2022 01:06
@github-actions github-actions bot locked and limited conversation to collaborators Aug 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants