Skip to content

Commit

Permalink
fix: fix sentry reading undefined (#27584)
Browse files Browse the repository at this point in the history
## **Description**

Fixes Sentry error.

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/27584?quickstart=1)

## **Related issues**

Fixes:
https://metamask.sentry.io/issues/5925202820/?environment=production&project=273505&query=is%3Aunresolved%20issue.priority%3A%5Bhigh%2C%20medium%5D%20release%3A%5B12.3.0%2C12.3.1%5D%20is%3Anew&referrer=issue-stream&sort=freq&statsPeriod=7d&stream_index=9

## **Manual testing steps**

1. Go to this page...
2.
3.

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->

### **After**

<!-- [screenshots/recordings] -->

## **Pre-merge author checklist**

- [ ] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
  • Loading branch information
sahar-fehri authored Oct 7, 2024
1 parent 2e20dac commit 509c2aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/components/app/assets/nfts/nfts-items/nfts-items.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export default function NftsItems({

const updateNftDropDownStateKey = (key, isExpanded) => {
const newCurrentAccountState = {
...nftsDropdownState[selectedAddress][chainId],
...nftsDropdownState?.[selectedAddress]?.[chainId],
[key]: !isExpanded,
};

Expand Down

0 comments on commit 509c2aa

Please sign in to comment.