Skip to content

Commit

Permalink
Merge pull request #534 from privacy-scaling-explorations/fix/single-…
Browse files Browse the repository at this point in the history
…round

fix(landing-page): fixed bug with multi round
  • Loading branch information
kittybest authored Dec 9, 2024
2 parents 5b130c4 + 0b93e4e commit 5f2e7df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/interface/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ const HomePage = (): JSX.Element => {

return (
<Layout pollId={singleRound ? singleRound.pollId : ""} type="home">
{singleRound && <SingleRoundHome round={singleRound} />}
{singleRound && rounds!.length === 1 && <SingleRoundHome round={singleRound} />}

{!singleRound && (
{rounds && rounds.length > 1 && (
<div className="flex h-auto w-screen flex-col items-center justify-center gap-4 bg-blue-50 px-2 pb-4 sm:h-[90vh] dark:bg-black">
<Heading className="mt-4 max-w-screen-lg text-center sm:mt-0" size="6xl">
{config.eventName}
Expand All @@ -51,11 +51,11 @@ const HomePage = (): JSX.Element => {
</div>
)}

{isConnected && !isAdmin && rounds && rounds.length === 0 && (
{isConnected && !isAdmin && rounds.length === 0 && (
<p className="text-gray-400">There are no rounds deployed.</p>
)}

{rounds && rounds.length > 1 && <RoundsList />}
<RoundsList />
</div>
)}

Expand Down

0 comments on commit 5f2e7df

Please sign in to comment.