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

Fix weird favorites state #5783

Merged
merged 11 commits into from
May 30, 2024
Merged

Fix weird favorites state #5783

merged 11 commits into from
May 30, 2024

Conversation

walmat
Copy link
Contributor

@walmat walmat commented May 29, 2024

Fixes APP-1515

What changed (plus any additional context for devs)

Screen recordings / screenshots

What to test

Copy link

linear bot commented May 29, 2024

Copy link

sentry-io bot commented May 29, 2024

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: src/swaps/screens/Swap/hooks/useSearchCurrencyLists.ts

Function Unhandled Issue
useSearchCurrencyLists TypeError: Cannot read property 'chainId' of undefined verifiedAssets.filter$argument_0(/Users/ben/workplace/rainbow/rainbow/src/swaps/screens/Swap/hooks/useSearchCurrencyLis...
Event Count: 3 Affected Users: 1
useSearchCurrencyLists TypeError: Cannot read property 'chainId' of null verifiedAssets.filter$argument_0(/Users/ben/workplace/rainbow/rainbow/src/swaps/screens/Swap/hooks/useSearchCurrencyLists.ts...
Event Count: 1 Affected Users: 1

Did you find this useful? React with a 👍 or 👎

@walmat walmat changed the title Progress on fixing weird favorites state Fix weird favorites state May 29, 2024
fav.address === ETH_ADDRESS ? '0x0000000000000000000000000000000000000000' === address : fav.address === address
);
// console.log(address, favorites);
return Object.values(favoritesMetadata).find(fav => fav.address === address);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did this to compare addresses, idk if it's useful here if so we can extract to a util
https://github.com/rainbow-me/rainbow/pull/5779/files#diff-642731cd0525a4b6dfdffbd2017e6139bd939d0fad8229022ebb288a7df2b6faR50-R55

@walmat walmat merged commit ec1d21f into develop May 30, 2024
6 checks passed
@walmat walmat deleted the @matthew/APP-1515 branch May 30, 2024 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants