Skip to content

Commit

Permalink
Merge branch 'main' into feat/submit-votes
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnGuilding committed Aug 28, 2024
2 parents 5928b77 + a6787b5 commit 3c1153b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/interface/src/pages/ballot/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import clsx from "clsx";
import Link from "next/link";
import { useRouter } from "next/router";
import { useEffect, useState, useMemo, useCallback } from "react";
import { useState, useMemo, useCallback } from "react";
import { useFormContext } from "react-hook-form";

import { Button } from "~/components/ui/Button";
Expand All @@ -12,7 +11,6 @@ import { useBallot } from "~/contexts/Ballot";
import { useMaci } from "~/contexts/Maci";
import { AllocationFormWrapper } from "~/features/ballot/components/AllocationFormWrapper";
import { BallotSchema } from "~/features/ballot/types";
import useSmartAccount from "~/hooks/useSmartAccount";
import { LayoutWithSidebar } from "~/layouts/DefaultLayout";
import { formatNumber } from "~/utils/formatNumber";
import { useAppState } from "~/utils/state";
Expand Down Expand Up @@ -124,9 +122,7 @@ const BallotAllocationForm = (): JSX.Element => {
};

const BallotPage = (): JSX.Element => {
const { address } = useSmartAccount();
const { ballot, sumBallot } = useBallot();
const router = useRouter();
const appState = useAppState();
const handleSubmit = useCallback(() => {
sumBallot();
Expand Down

0 comments on commit 3c1153b

Please sign in to comment.