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

TypeError: Cannot read properties of undefined (reading 'toLowerCase') #29831

Open
sentry-io bot opened this issue Jan 21, 2025 · 1 comment
Open

TypeError: Cannot read properties of undefined (reading 'toLowerCase') #29831

sentry-io bot opened this issue Jan 21, 2025 · 1 comment
Labels
regression-prod-12.10.1 Regression bug that was found in production in release 12.10.1 Sev2-normal Normal severity; minor loss of service or inconvenience. team-bridge type-bug

Comments

@sentry-io
Copy link

sentry-io bot commented Jan 21, 2025

Sentry Issue: METAMASK-XEXA

TypeError: Cannot read properties of undefined (reading 'toLowerCase')
  at <object>.openBridgeExperience (ui/hooks/bridge/useBridging.ts:93:81)
  at <object>.onClick (ui/pages/swaps/prepare-swap-page/prepare-swap-page.js:1068:15)
  at obj[prop] (/metamask/scripts/sentry-install.js:24:1)
  at obj[prop] (/metamask/scripts/sentry-install.js:24:1)
  at obj[prop] (/metamask/scripts/sentry-install.js:24:1)
...
(16 additional frame(s) were not displayed)
@danjm danjm added regression-prod-12.10.1 Regression bug that was found in production in release 12.10.1 rollout-blocker labels Jan 21, 2025
@danjm
Copy link
Contributor

danjm commented Jan 21, 2025

This happens when we don't have sufficient information about the native token. @sahar-fehri commented:
"I think i can repro the msg by commenting out [the mainnet line from the definition of SWAPS_CHAINID_DEFAULT_TOKEN_MAP]; could be a case of a chain that was not part of the mapping"

The impact is that the user will click the "Ready to bridge?" button and then nothing will happen. This may confuse the user, but otherwise presents no risk

@danjm danjm added type-bug Sev2-normal Normal severity; minor loss of service or inconvenience. team-bridge and removed rollout-blocker labels Jan 21, 2025
@github-project-automation github-project-automation bot moved this to To be fixed in Bugs by severity Jan 21, 2025
@github-project-automation github-project-automation bot moved this to To be fixed in Bugs by team Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression-prod-12.10.1 Regression bug that was found in production in release 12.10.1 Sev2-normal Normal severity; minor loss of service or inconvenience. team-bridge type-bug
Projects
Status: To be fixed
Status: To be fixed
Development

No branches or pull requests

1 participant