Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/full-games-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"thirdweb": patch
---

Fix requireApproval option not enforced for wallet connection
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@
props.selectWallet(localWalletConfig);
}}
data-test="continue-as-guest-button"
disabled={props.meta.requireApproval && !approvedTOS}

Check warning on line 186 in packages/thirdweb/src/react/web/ui/ConnectWallet/WalletSelector.tsx

View check run for this annotation

Codecov / codecov/patch

packages/thirdweb/src/react/web/ui/ConnectWallet/WalletSelector.tsx#L186

Added line #L186 was not covered by tests
>
{props.connectLocale.continueAsGuest}
</Button>
Expand Down Expand Up @@ -227,6 +228,7 @@
<WalletTypeRowButton
client={props.client}
icon={OutlineWalletIcon}
disabled={props.meta.requireApproval && !approvedTOS}

Check warning on line 231 in packages/thirdweb/src/react/web/ui/ConnectWallet/WalletSelector.tsx

View check run for this annotation

Codecov / codecov/patch

packages/thirdweb/src/react/web/ui/ConnectWallet/WalletSelector.tsx#L231

Added line #L231 was not covered by tests
onClick={() => {
setIsWalletGroupExpanded(true);
}}
Expand Down