Skip to content
This repository was archived by the owner on Aug 30, 2022. It is now read-only.

Commit 8d2d74f

Browse files
committed
handle emptry params in web3 button
1 parent a030845 commit 8d2d74f

File tree

1 file changed

+1
-1
lines changed
  • packages/thirdweb-react/src/components/Web3Button

1 file changed

+1
-1
lines changed

packages/thirdweb-react/src/components/Web3Button/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export const Web3Button = <TExecutableFn extends ExecutableFn>({
119119
return await callable(contractQuery.contract);
120120
}
121121

122-
const vars = typeof params === "function" ? await params() : params;
122+
const vars = typeof params === "function" ? await params() : params || [];
123123
const withOverrides =
124124
vars && overrides
125125
? [...vars, overrides]

0 commit comments

Comments
 (0)