MetaMask / MetaMask/metamask-extension
[Sentry] TypeError: Cannot destructure property 'enabled' of 'l' as it is undefined.
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
Sentry Issue: [METAMASK-YGMR](https://metamask.sentry.io/issues/7202486826/?referrer=github_integration)
```
TypeError: Cannot destructure property 'enabled' of 'l' as it is undefined.
at n.getQuotesForConfirmation (app/scripts/lib/dapp-swap/dapp-swap-util.ts:92:16)
at middleware (app/scripts/lib/dapp-swap/dapp-swap-middleware.ts:50:7)
at new Promise ()
...
(3 additional frame(s) were not displayed)
```
Contributor guide
Research direction
Start in app/scripts/lib/dapp-swap/dapp-swap-util.ts at getQuotesForConfirmation, line 92, and trace the value passed from app/scripts/lib/dapp-swap/dapp-swap-middleware.ts at line 50. Determine why the value is undefined in the Sentry-reported path; done means that path no longer produces the reported TypeError.
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
- 42/100