Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: switch network #17

Merged
merged 1 commit into from
Jul 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions front/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ import {
} from "@sismo-core/sismo-connect-react";
import { AUTHS, CLAIMS, CONFIG } from "@/app/sismo-connect-config";


/* ******************** Defines the chain to use *************************** */
const CHAIN = mumbaiFork;

Expand Down Expand Up @@ -79,7 +78,7 @@ export default function Home() {
function resetApp() {
setPageState("init");
setSismoConnectVerifiedResult(null);
setClaimError("");
setClaimError(null);
const url = new URL(window.location.href);
url.searchParams.delete("sismoConnectResponseCompressed");
window.history.replaceState({}, "", url.toString());
Expand Down Expand Up @@ -139,7 +138,7 @@ export default function Home() {
<b>Your airdrop destination address is: {address}</b>
</p>
</>
{pageState == "init" && (
{pageState == "init" && !claimError && (
<>
<SismoConnectButton
config={CONFIG}
Expand Down