Skip to content

Commit

Permalink
working :)
Browse files Browse the repository at this point in the history
  • Loading branch information
Szegoo committed Sep 15, 2023
1 parent dae10d7 commit 88c3e70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/contexts/RelayApi/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ const RelayApiContextProvider = (props: any) => {
}, [state.apiState]);

useEffect(() => {
console.log(relay);
const force = prevRelay !== relay;
setPrevRelay(relay);
connect(state, getRelayChainApiURL(relay), force, dispatch);
Expand Down
4 changes: 2 additions & 2 deletions src/contracts/identity/context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ const IdentityContractProvider = ({ children }: Props) => {
toastError(e.toString());
}
setLoadingChains(false);
}, [api, contract, toastError]);
}, [api, contract, toastError, relay]);

const getAddresses = async (no: number): Promise<Address[]> => {
if (!api || !contract) return [];
Expand Down Expand Up @@ -232,7 +232,7 @@ const IdentityContractProvider = ({ children }: Props) => {

useEffect(() => {
fetchChains();
}, [api?.isReady, contract?.address]);
}, [api?.isReady, contract?.address, relay]);

return (
<IdentityContext.Provider
Expand Down

0 comments on commit 88c3e70

Please sign in to comment.