Skip to content

Commit 5d98e2f

Browse files
EightRiceclaude
andcommitted
fix: footer positioning and active proposals count
- Add minHeight to PageLayout to push footer below viewport fold - Fix Active Proposals count showing 0 by using case-insensitive status check 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2e7b619 commit 5d98e2f

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/components/ui/DaoExplorer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const PageLayout = styled("div")(({ theme }) => ({
44
background: theme.palette.primary.dark,
55
width: "1000px",
66
margin: "42px auto 0px auto",
7+
minHeight: "calc(100vh - 200px)",
78

89
["@media (max-width: 1425px)"]: {},
910

src/modules/etherlink/components/EvmDaoStatsRow.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ export const EvmDaoStatsRow = () => {
4141
(proposal: IEvmProposal) => proposal.status === "executable"
4242
)?.length
4343

44-
const activeProposalsCount = daoProposals.filter((proposal: IEvmProposal) => proposal.status === "active")?.length
44+
const activeProposalsCount = daoProposals.filter(
45+
(proposal: IEvmProposal) => proposal.status?.toLowerCase() === "active"
46+
)?.length
4547

4648
const decimals = daoSelected?.decimals || 0
4749
const totalSupplyDisplay = (() => {
@@ -103,7 +105,7 @@ export const EvmDaoStatsRow = () => {
103105
},
104106
{
105107
title: "Active Proposals",
106-
value: daoSelected?.proposals?.length || activeProposalsCount || "0"
108+
value: activeProposalsCount || "0"
107109
},
108110
{
109111
title: "Awaiting Executions",

0 commit comments

Comments
 (0)