diff --git a/packages/interface/src/contexts/Maci.tsx b/packages/interface/src/contexts/Maci.tsx index 912bacc4..02c7ed72 100644 --- a/packages/interface/src/contexts/Maci.tsx +++ b/packages/interface/src/contexts/Maci.tsx @@ -214,7 +214,7 @@ export const MaciProvider: React.FC = ({ children }: MaciProv // on load get the key pair from local storage and set the signature message useEffect(() => { - setSignatureMessage(`Generate your EdDSA Key Pair at ${window.location.origin}`); + setSignatureMessage(`Generate your EdDSA Key Pair`); const storedMaciPrivKey = localStorage.getItem("maciPrivKey"); const storedMaciPubKey = localStorage.getItem("maciPubKey"); const storedSemaphoreIdentity = localStorage.getItem("semaphoreIdentity"); @@ -274,7 +274,7 @@ export const MaciProvider: React.FC = ({ children }: MaciProv // @ts-expect-error type mismatch const { stateIndex: index, voiceCredits } = await signup(smartAccount, smartAccountClient, maciPubKey, sgData); - if (index) { + if (index >= 0n) { setIsRegistered(true); setStateIndex(index.toString()); setInitialVoiceCredits(Number.parseInt(voiceCredits.toString(), 10)); diff --git a/packages/interface/src/providers/index.tsx b/packages/interface/src/providers/index.tsx index 3892345d..0a689f0b 100644 --- a/packages/interface/src/providers/index.tsx +++ b/packages/interface/src/providers/index.tsx @@ -50,6 +50,7 @@ export const Providers = ({ children }: PropsWithChildren): JSX.Element => { logo: "/round-logo.svg", loginMessage: "Welcome to MACI Platform", landingHeader: "MACI Platform", + walletList: ["metamask"], }, // Create embedded wallets for users who don't have a wallet embeddedWallets: {