diff --git a/packages/interface/src/components/BallotOverview.tsx b/packages/interface/src/components/BallotOverview.tsx index 0dbaf952..1bd50621 100644 --- a/packages/interface/src/components/BallotOverview.tsx +++ b/packages/interface/src/components/BallotOverview.tsx @@ -25,7 +25,13 @@ export const BallotOverview = ({ title = undefined, pollId }: IBallotOverviewPro const { asPath } = useRouter(); - const showButton = useMemo(() => !asPath.includes("ballot"), [asPath]); + const showButton = useMemo( + () => + !asPath.includes("ballot") && + (roundState === ERoundState.VOTING || + ((roundState === ERoundState.TALLYING || roundState === ERoundState.RESULTS) && ballot.published)), + [asPath], + ); return ( -
+
{title} diff --git a/packages/interface/src/components/Footer.tsx b/packages/interface/src/components/Footer.tsx index 340475c5..19b9e116 100644 --- a/packages/interface/src/components/Footer.tsx +++ b/packages/interface/src/components/Footer.tsx @@ -7,8 +7,8 @@ import { config } from "~/config"; import { Logo } from "./ui/Logo"; export const Footer = (): JSX.Element => ( -