Skip to content

Commit

Permalink
Bugfix/add override chain id for plasmit editing (#1205)
Browse files Browse the repository at this point in the history
* add override chain id functionality for plasmic editing

* add override chain id to effect dependencies
  • Loading branch information
Jipperism authored Dec 1, 2023
1 parent 6488e79 commit a602567
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/hooks/hypercerts-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const useHypercertClient = ({
} = {}) => {
const { chain } = useNetwork();
const clientConfig = {
chain,
chain: overrideChainId ? { id: overrideChainId } : chain,
nftStorageToken: NFT_STORAGE_TOKEN,
web3StorageToken: WEB3_STORAGE_TOKEN,
};
Expand Down Expand Up @@ -49,7 +49,7 @@ export const useHypercertClient = ({
}

setIsLoading(false);
}, [chain?.id, walletClient, walletClientLoading]);
}, [chain?.id, overrideChainId, walletClient, walletClientLoading]);

return { client, isLoading };
};

0 comments on commit a602567

Please sign in to comment.