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

CU-86a5xqdbn-NEON3 - Swap Request - Limit destination accounts when t… #270

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

hotequil
Copy link
Collaborator

…oken "TO" is from a supported network

@hotequil hotequil self-assigned this Dec 19, 2024
Comment on lines 19 to 27
const { contacts } = useContactsSelector()

const hasContactsByBlockchain = useMemo(() => {
if (!blockchain) return false

return contacts.flatMap(contact => contact.addresses.map(address => address.blockchain)).includes(blockchain)
}, [blockchain, contacts])

return { hasContactsByBlockchain }
Copy link
Collaborator

Choose a reason for hiding this comment

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

Create a new createAppSelector instead of using useMemo

@thiagocbalducci thiagocbalducci merged commit ed8b919 into dev Dec 19, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants