diff --git a/packages/interface/src/contexts/Maci.tsx b/packages/interface/src/contexts/Maci.tsx index d84003d6..472e2742 100644 --- a/packages/interface/src/contexts/Maci.tsx +++ b/packages/interface/src/contexts/Maci.tsx @@ -109,6 +109,7 @@ export const MaciProvider: React.FC = ({ children }: MaciProv switch (gatekeeperTrait) { case GatekeeperTrait.Semaphore: if (!signer) { + setIsLoading(false); return; } getSemaphoreProof(signer, semaphoreIdentity!) @@ -126,6 +127,7 @@ export const MaciProvider: React.FC = ({ children }: MaciProv break; case GatekeeperTrait.Hats: if (!signer) { + setIsLoading(false); return; } getHatsSingleGatekeeperData({ @@ -377,6 +379,7 @@ export const MaciProvider: React.FC = ({ children }: MaciProv setIsLoading(false); } else { if (!window.ethereum) { + setIsLoading(false); return; }