Skip to content

fix(elements): Add check for authenticable web3 strategy - #3708

Merged
alexcarpenter merged 6 commits into
mainfrom
alexcarpenter/sdki-138-enabling-metamask-leads-to-runtime-error
Jul 15, 2024
Merged

fix(elements): Add check for authenticable web3 strategy#3708
alexcarpenter merged 6 commits into
mainfrom
alexcarpenter/sdki-138-enabling-metamask-leads-to-runtime-error

Conversation

@alexcarpenter

@alexcarpenter alexcarpenter commented Jul 12, 2024

Copy link
Copy Markdown
Member

Description

Fix issue in isWeb3Strategy check to account for web3_ prefix in provider name. This was causing a runtime error to be thrown when enabling metamask.

BEFORE

Screenshot 2024-07-12 at 4 50 43 PM

AFTER

Screenshot 2024-07-12 at 4 50 20 PM

https://linear.app/clerk/issue/SDKI-138/enabling-metamask-leads-to-runtime-error

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@changeset-bot

changeset-bot Bot commented Jul 12, 2024

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c41966c

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

This PR includes changesets to release 1 package
Name Type
@clerk/elements 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

@alexcarpenter alexcarpenter changed the title add check for web3 strategy fix(elements): Add check for authenticable web3 strategy Jul 12, 2024
@alexcarpenter
alexcarpenter marked this pull request as ready for review July 12, 2024 20:51
@alexcarpenter
alexcarpenter requested a review from tmilewski July 15, 2024 13:32

@tmilewski tmilewski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

💯

@alexcarpenter
alexcarpenter enabled auto-merge (squash) July 15, 2024 15:40
@alexcarpenter
alexcarpenter merged commit 4449dfd into main Jul 15, 2024
@alexcarpenter
alexcarpenter deleted the alexcarpenter/sdki-138-enabling-metamask-leads-to-runtime-error branch July 15, 2024 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants