File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
packages/thirdweb/src/react/web/hooks Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " thirdweb " : patch
3
+ ---
4
+
5
+ Enable Buy Modal by default with useSendTransaction hook
Original file line number Diff line number Diff line change @@ -70,8 +70,9 @@ export function useSendTransaction(config: SendTransactionConfig = {}) {
70
70
71
71
const setRootEl = useContext ( SetRootElementContext ) ;
72
72
return useSendTransactionCore (
73
- typeof payModal === "object"
74
- ? ( data ) => {
73
+ payModal === false
74
+ ? undefined
75
+ : ( data ) => {
75
76
setRootEl (
76
77
< TxModal
77
78
tx = { data . tx }
@@ -89,8 +90,7 @@ export function useSendTransaction(config: SendTransactionConfig = {}) {
89
90
nativeTokenSymbol = { data . walletBalance . symbol }
90
91
/> ,
91
92
) ;
92
- }
93
- : undefined ,
93
+ } ,
94
94
) ;
95
95
}
96
96
You can’t perform that action at this time.
0 commit comments