Skip to content

Commit

Permalink
fix: switch network
Browse files Browse the repository at this point in the history
  • Loading branch information
yum0e committed Jul 21, 2023
1 parent 1974e94 commit 9ce14f3
Showing 1 changed file with 2 additions and 3 deletions.
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

0 comments on commit 9ce14f3

Please sign in to comment.