-
Notifications
You must be signed in to change notification settings - Fork 589
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
Conversation
🔍 Existing Issues For ReviewYour pull request is modifying functions with the following pre-existing issues: 📄 File: src/swaps/screens/Swap/hooks/useSearchCurrencyLists.ts
Did you find this useful? React with a 👍 or 👎 |
fav.address === ETH_ADDRESS ? '0x0000000000000000000000000000000000000000' === address : fav.address === address | ||
); | ||
// console.log(address, favorites); | ||
return Object.values(favoritesMetadata).find(fav => fav.address === address); |
There was a problem hiding this comment.
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
Co-authored-by: gregs <ukfaeku@gmail.com>
Co-authored-by: gregs <ukfaeku@gmail.com>
…nbow into @matthew/APP-1515
Fixes APP-1515
What changed (plus any additional context for devs)
Screen recordings / screenshots
What to test