diff --git a/apps/web/src/components/VotingCard.tsx b/apps/web/src/components/VotingCard.tsx index 43b1cce..c6b2463 100644 --- a/apps/web/src/components/VotingCard.tsx +++ b/apps/web/src/components/VotingCard.tsx @@ -82,8 +82,10 @@ const VotingCard = ({ <>

- Cast Your Vote ({votedProjects.length} / {maxVotedProjects}{" "} - projects) + Cast Your Vote{" "} + {projects.length > maxVotedProjects + ? `(${votedProjects.length} / ${maxVotedProjects} projects)` + : ""}

Used {totalVotes} / {votingPower} diff --git a/apps/web/src/utils/wallet.ts b/apps/web/src/utils/wallet.ts index f6dde50..e745a8f 100644 --- a/apps/web/src/utils/wallet.ts +++ b/apps/web/src/utils/wallet.ts @@ -4,12 +4,11 @@ import "@rainbow-me/rainbowkit/styles.css"; import { getDefaultConfig } from "@rainbow-me/rainbowkit"; import { createPublicClient } from "viem"; import { http, createConfig } from "wagmi"; -import { mainnet } from "wagmi/chains"; +import { base, mainnet, optimism } from "wagmi/chains"; import { SITE_NAME } from "../../../../constants"; -import * as chains from "wagmi/chains"; import { NETWORK } from "../../../../constants"; -const chain = chains[NETWORK]; +const chain = NETWORK === "optimism" ? optimism : base; export const WALLETCONNECT_PROJECT_ID = process.env.NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID ?? "";