Skip to content

Commit

Permalink
Refactor!
Browse files Browse the repository at this point in the history
Co-authored-by: with-heart <with.heart+git@pm.me>
  • Loading branch information
Dhaiwat10 and with-heart authored Dec 30, 2021
1 parent f92e078 commit 429aeae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hooks/src/hooks/useContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function useContract(address: string, abi) {
const [contract, setContract] = React.useState({});
const [isReady, setIsReady] = React.useState(false);
React.useEffect(() => {
if (context && context.connected) {
if (context?.connected) {
const newContract = new Contract(
address,
abi,
Expand Down

0 comments on commit 429aeae

Please sign in to comment.