File tree 2 files changed +7
-0
lines changed
packages/thirdweb/src/react/web/ui/ConnectWallet
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " thirdweb " : patch
3
+ ---
4
+
5
+ Fix requireApproval option not enforced for wallet connection
Original file line number Diff line number Diff line change @@ -183,6 +183,7 @@ const WalletSelectorInner: React.FC<WalletSelectorProps> = (props) => {
183
183
props . selectWallet ( localWalletConfig ) ;
184
184
} }
185
185
data-test = "continue-as-guest-button"
186
+ disabled = { props . meta . requireApproval && ! approvedTOS }
186
187
>
187
188
{ props . connectLocale . continueAsGuest }
188
189
</ Button >
@@ -227,6 +228,7 @@ const WalletSelectorInner: React.FC<WalletSelectorProps> = (props) => {
227
228
< WalletTypeRowButton
228
229
client = { props . client }
229
230
icon = { OutlineWalletIcon }
231
+ disabled = { props . meta . requireApproval && ! approvedTOS }
230
232
onClick = { ( ) => {
231
233
setIsWalletGroupExpanded ( true ) ;
232
234
} }
You can’t perform that action at this time.
0 commit comments