MetaMask / MetaMask/metamask-extension

[Sentry] TypeError: Cannot destructure property 'enabled' of 'l' as it is undefined.

Open
#39,433 0 comments 0 reactions 0 assignees View on GitHub
area-sentry Bugs---Low-Priority external-contributor INVALID-ISSUE-TEMPLATE regression-prod-13.14.1 Sev2-normal team-confirmations type-bug
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.