diff --git a/packages/round-manager/src/features/api/payoutStrategy/payoutStrategy.ts b/packages/round-manager/src/features/api/payoutStrategy/payoutStrategy.ts index a02bd0fba9..bf7592c8c5 100644 --- a/packages/round-manager/src/features/api/payoutStrategy/payoutStrategy.ts +++ b/packages/round-manager/src/features/api/payoutStrategy/payoutStrategy.ts @@ -60,9 +60,17 @@ export const useGroupProjectsByPaymentStatus = ( const paidProjectIds = paidProjects?.map((project) => project.projectId); + const matchingDistribution = round.matchingDistribution; + + // filter out matchingDistribution with projectId "0x0DD5CC8755C6e4247364012Bb0AC99Cd5ED136D2" + const filteredMatchingDistribution = matchingDistribution?.filter( + (project) => + project.projectId !== "0x0DD5CC8755C6e4247364012Bb0AC99Cd5ED136D2" + ); + const allProjects: MatchingStatsData[] = useMemo( () => - round.matchingDistribution?.map((matchingStatsData) => { + filteredMatchingDistribution?.map((matchingStatsData) => { const anchorAddress = applications?.find( (application) => application.projectId === matchingStatsData.projectId )?.anchorAddress; @@ -83,7 +91,7 @@ export const useGroupProjectsByPaymentStatus = ( projectPayoutAddress: matchingStatsData.projectPayoutAddress, }; }) ?? [], - [round.matchingDistribution, applications] + [filteredMatchingDistribution, applications] ); useEffect(() => { diff --git a/packages/round-manager/src/features/round/ViewFundGrantees.tsx b/packages/round-manager/src/features/round/ViewFundGrantees.tsx index 1dfa6d6b55..183766ab82 100644 --- a/packages/round-manager/src/features/round/ViewFundGrantees.tsx +++ b/packages/round-manager/src/features/round/ViewFundGrantees.tsx @@ -257,6 +257,8 @@ export function PayProjectsTable(props: { }, [selectedProjects, props.projects]); function toggleAll() { + console.log("toggleAll", checked, indeterminate); + console.log("props.projects", props.projects); setSelectedProjects(checked || indeterminate ? [] : props.projects); setChecked(!checked && !indeterminate); setIndeterminate(false); @@ -365,6 +367,8 @@ export function PayProjectsTable(props: { } }; + console.log("selectedProjects", selectedProjects); + return (