Skip to content

Commit

Permalink
feat(ux): auto close wallet connect modal after approval
Browse files Browse the repository at this point in the history
  • Loading branch information
rossbulat committed Oct 10, 2024
1 parent 3c4a455 commit dcea67b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/contexts/WalletConnect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ export const WalletConnectProvider = ({
// Get session from approval.
const newWcSession = await wcMeta?.approval();

// Close modal on approval completion.
wcModal.current!.closeModal();

// Update session data in provider.
if (wcProvider.current) {
wcProvider.current.session = newWcSession;
Expand Down

0 comments on commit dcea67b

Please sign in to comment.