MetaMask / MetaMask/metamask-extension
[Sentry] TypeError: Cannot read properties of undefined (reading 'status')
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
Sentry Issue: [METAMASK-XSW9](https://metamask.sentry.io/issues/6959826000/?referrer=github_integration)
```
TypeError: Cannot read properties of undefined (reading 'status')
at exports.useNetworkConnectionBanner (ui/hooks/useNetworkConnectionBanner.ts:209:36)
at NetworkConnectionBanner (ui/components/app/network-connection-banner/network-connection-banner.tsx:74:35)
...
(9 additional frame(s) were not displayed)
```
Contributor guide
Research direction
Start with the Sentry report and inspect ui/hooks/useNetworkConnectionBanner.ts at line 209, then follow its use from ui/components/app/network-connection-banner/network-connection-banner.tsx at line 74. Determine why the value whose status is read can be undefined and verify that the TypeError no longer occurs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100