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: do not require unlocking for wallet selector #151

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

meeh0w
Copy link
Member

@meeh0w meeh0w commented Feb 19, 2025

Description

Changes

Testing

Screenshots:

Checklist for the author

Tick each of them when done or if not applicable.

  • I've covered new/modified business logic with Jest test cases.
  • I've tested the changes myself before sending it to code review and QA.

@meeh0w meeh0w marked this pull request as ready for review February 19, 2025 16:21
@@ -175,7 +176,11 @@ export function WalletContextProvider({ children }: { children: any }) {
[request],
);

if (!isWalletLoading && isWalletLocked) {
// We do not require extension to be unlocked for wallet selection
const routeMatch = useRouteMatch('/approve/select-wallet');
Copy link
Member Author

@meeh0w meeh0w Feb 19, 2025

Choose a reason for hiding this comment

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

Maybe it would be better to have a separate provider for locked/unlocked state (like a LockProvider) that would know which routes can be shown without auth, but I wasn't sure if it's worth it since it's just one route.

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.

1 participant