Skip to content

Commit

Permalink
Fix ProposalCard, a new component from latest develop work
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgall committed Mar 27, 2024
1 parent 83868e7 commit 307c8c7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/Proposals/ProposalCard/ProposalCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand All @@ -26,8 +26,12 @@ function ProposalCard({ proposal }: { proposal: FractalProposal }) {

const isSnapshotProposal = !!(proposal as SnapshotProposal).snapshotProposalId;

if (!daoNetwork || !daoAddress) {
return <></>;
}

return (
<Link to={DAO_ROUTES.proposal.relative(daoAddress, proposal.proposalId)}>
<Link to={DAO_ROUTES.proposal.relative(daoNetwork, daoAddress, proposal.proposalId)}>
<Box
minHeight="6.25rem"
bg="chocolate.900"
Expand Down

0 comments on commit 307c8c7

Please sign in to comment.