diff --git a/packages/nextjs/pages/example-zk/ZkSteps.tsx b/packages/nextjs/pages/example-zk/ZkSteps.tsx index 400f926..eba8d15 100644 --- a/packages/nextjs/pages/example-zk/ZkSteps.tsx +++ b/packages/nextjs/pages/example-zk/ZkSteps.tsx @@ -5,7 +5,6 @@ import { GenerateProof } from "./GenerateProof"; import SignedStats from "./SignedStats"; import { ZkStepsIntro } from "./ZkStepsIntro"; import type { NextPage } from "next"; -import { useBirthYearProofsStore } from "~~/services/store/birth-year-proofs"; const TEN_YEARS = 1000 * 60 * 60 * 24 * 365 * 10; const YEAR_TEN_YEARS_AGO = new Date(Date.now() - TEN_YEARS).getFullYear(); @@ -31,13 +30,7 @@ const ZkSteps: NextPage = () => { const [currentStep, setCurrentStep] = useState(0); const step2ClassName = currentStep >= 2 ? "step-primary" : ""; const step3ClassName = currentStep >= 3 ? "step-primary" : ""; - const signedBirthYear = useBirthYearProofsStore(state => state.signedBirthYear); - const signerPublicKey = useBirthYearProofsStore(state => state.signerPublicKey); - const proof = useBirthYearProofsStore(state => state.proof); - const step2NotCompleted = !signedBirthYear && !signerPublicKey && currentStep === 1; - const step3NotCompleted = proof === "0x" && currentStep === 2; const previousButtonDisabled = currentStep === INTRO_STEP; - const nextButtonDisabled = currentStep === LAST_STEP || step2NotCompleted || step3NotCompleted; return ( <> @@ -46,9 +39,9 @@ const ZkSteps: NextPage = () => { {currentStep !== INTRO_STEP && ( <>
<> @@ -63,7 +56,6 @@ const ZkSteps: NextPage = () => {