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

[FRE-1314] fix: filter available wallets in RenderWalletList component #597

Merged
merged 5 commits into from
Dec 23, 2024

Conversation

ericHgorski
Copy link
Contributor

No description provided.

Copy link

changeset-bot bot commented Dec 18, 2024

🦋 Changeset detected

Latest commit: 407be91

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@skip-go/widget Patch
nextjs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Dec 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
widget-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 23, 2024 4:33pm

@ericHgorski ericHgorski changed the title fix: filter available wallets in RenderWalletList component [FRE-1314] fix: filter available wallets in RenderWalletList component Dec 18, 2024
@codingki
Copy link
Member

Not working for solana wallets
image

@codingki
Copy link
Member

also found some unnecessary hook deps

@ericHgorski
Copy link
Contributor Author

ericHgorski commented Dec 23, 2024

Not working for solana wallets image

This is as intended if only one wallet option is available then we show all available options. I could refine the code so this is only the case with walletconnect and not any length === 1 available wallet list. Its a design question if we're ok with this modal having just a single option.

@codingki
Copy link
Member

Ok nice, lgtm if the hook deps fixed

Copy link
Member

@codingki codingki left a comment

Choose a reason for hiding this comment

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

merge when eslint deps fixed

/>
);
},
[connectMutation]
);

const height = useMemo(() => {
return Math.min(530, walletList.length * (ITEM_HEIGHT + ITEM_GAP));
return Math.min(530, displayWallets.length * (ITEM_HEIGHT + ITEM_GAP));
}, [walletList]);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
}, [walletList]);
}, [displayWallets]);

@ericHgorski ericHgorski merged commit 7caf0cb into staging Dec 23, 2024
4 of 5 checks passed
@ericHgorski ericHgorski deleted the eg/fre-1314 branch December 23, 2024 16:28
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.

2 participants