From 307c8c7c1a23630f927b2a25d0a00b18c6b1e499 Mon Sep 17 00:00:00 2001 From: Adam Gall Date: Tue, 26 Mar 2024 23:34:08 -0400 Subject: [PATCH] Fix ProposalCard, a new component from latest `develop` work --- src/components/Proposals/ProposalCard/ProposalCard.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/Proposals/ProposalCard/ProposalCard.tsx b/src/components/Proposals/ProposalCard/ProposalCard.tsx index d4796291b0..bae0c0d1fd 100644 --- a/src/components/Proposals/ProposalCard/ProposalCard.tsx +++ b/src/components/Proposals/ProposalCard/ProposalCard.tsx @@ -12,7 +12,7 @@ import QuorumBadge from '../../ui/badges/QuorumBadge'; function ProposalCard({ proposal }: { proposal: FractalProposal }) { const { - node: { daoAddress }, + node: { daoAddress, daoNetwork }, } = useFractal(); const { t } = useTranslation('common'); @@ -26,8 +26,12 @@ function ProposalCard({ proposal }: { proposal: FractalProposal }) { const isSnapshotProposal = !!(proposal as SnapshotProposal).snapshotProposalId; + if (!daoNetwork || !daoAddress) { + return <>; + } + return ( - +