From 53042493cd189cfa38f70eb40956f033b6e16c8b Mon Sep 17 00:00:00 2001 From: LewisB Date: Fri, 6 Dec 2024 01:32:50 +0100 Subject: [PATCH] fix: missing pooladdress for navigation --- packages/app/src/components/ViewCollective.tsx | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/packages/app/src/components/ViewCollective.tsx b/packages/app/src/components/ViewCollective.tsx index 060677b..dfb0dda 100644 --- a/packages/app/src/components/ViewCollective.tsx +++ b/packages/app/src/components/ViewCollective.tsx @@ -45,9 +45,11 @@ import { StopDonationActionButton } from './StopDonationActionButton'; const HasDonatedCard = ({ donorCollective, tokenPrice, + poolAddress, }: { donorCollective?: DonorCollective; tokenPrice?: number; + poolAddress?: string; }) => { const { address } = useAccount(); const { data: ensName } = useEnsName({ address, chainId: 1 }); @@ -151,7 +153,7 @@ const HasDonatedCard = ({ color={Colors.green[200]} seeType={false} onPress={() => { - navigate(`/donate/${donorCollective?.collective}`); + navigate(`/donate/${poolAddress}`); }} /> @@ -165,7 +167,7 @@ const HasDonatedCard = ({ color={Colors.purple[200]} seeType={true} onPress={() => { - navigate(`/collective/${donorCollective?.collective}/donors`); + navigate(`/collective/${poolAddress}/donors`); }} /> @@ -307,7 +309,11 @@ function ViewCollective({ collective }: ViewCollectiveProps) { /> - + @@ -394,7 +400,11 @@ function ViewCollective({ collective }: ViewCollectiveProps) { currency={collective.rewardToken} /> - +