Skip to content

Fix broken context menus #6209

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

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

walmat
Copy link
Contributor

@walmat walmat commented Oct 17, 2024

What changed (plus any additional context for devs)

During our network expansion, these actionKeys got switched from strings to numbers and that broke the context menus. Also the chain images were broken, so those are now fixed.

Screen recordings / screenshots

Screenshot 2024-10-17 at 2 12 54 PM

What to test

const handlePressButton = useCallback(() => {
convertAssetAndNavigate(availableChainIds[0]);
}, [availableChainIds, convertAssetAndNavigate]);

const networkMenuItems = supportedSwapChainIds
.filter(chainId => chainId !== ChainId.mainnet)
.filter(chainId => chainId !== ChainId.mainnet && availableChainIds.includes(chainId))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we also weren't filtering out non-available chainIds anymore which is fixed now

@brunobar79
Copy link
Member

Launch in simulator or device for 4e05bdd

Copy link
Contributor

@ibrahimtaveras00 ibrahimtaveras00 left a comment

Choose a reason for hiding this comment

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

Looks good on both OS's 👍🏽

@walmat walmat merged commit ec2948f into develop Oct 22, 2024
9 checks passed
@walmat walmat deleted the @matthew/fix-available-networks-v2-context-menu branch October 22, 2024 14:52
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.

4 participants