From d79ad59ba249b5c48c7d135fcf388fe75776d5f0 Mon Sep 17 00:00:00 2001 From: Florent Date: Tue, 26 Nov 2024 14:48:44 +0100 Subject: [PATCH 1/2] fix: hide program on terrasos in project card --- web-marketplace/src/pages/Projects/AllProjects/AllProjects.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-marketplace/src/pages/Projects/AllProjects/AllProjects.tsx b/web-marketplace/src/pages/Projects/AllProjects/AllProjects.tsx index 8f5733b77e..43be2bad9e 100644 --- a/web-marketplace/src/pages/Projects/AllProjects/AllProjects.tsx +++ b/web-marketplace/src/pages/Projects/AllProjects/AllProjects.tsx @@ -343,7 +343,7 @@ export const AllProjects: React.FC> = () => { project, _, })} - program={project.program} + program={IS_REGEN ? project.program : undefined} projectPrefinancing={project.projectPrefinancing} offChain={config.buyButton ? project.offChain : true} draftText={_(DRAFT_TEXT)} From 7f96c7fadae4a2a7aa7ff5cef0457592d5e5fd07 Mon Sep 17 00:00:00 2001 From: Florent Date: Tue, 26 Nov 2024 16:03:03 +0100 Subject: [PATCH 2/2] fix: hide program on credit class card --- .../ProjectTopSection/ProjectTopSection.CreditClassCard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web-marketplace/src/components/organisms/ProjectTopSection/ProjectTopSection.CreditClassCard.tsx b/web-marketplace/src/components/organisms/ProjectTopSection/ProjectTopSection.CreditClassCard.tsx index 4e17a04c38..421200918b 100644 --- a/web-marketplace/src/components/organisms/ProjectTopSection/ProjectTopSection.CreditClassCard.tsx +++ b/web-marketplace/src/components/organisms/ProjectTopSection/ProjectTopSection.CreditClassCard.tsx @@ -9,7 +9,7 @@ import { Account } from 'web-components/src/components/user/UserInfoCard'; import { AllCreditClassQuery } from 'generated/sanity-graphql'; import { CreditClassMetadataLD } from 'lib/db/types/json-ld'; -import { LINK_PREFIX } from 'lib/env'; +import { IS_REGEN, LINK_PREFIX } from 'lib/env'; import { Link } from 'components/atoms'; @@ -81,7 +81,7 @@ export const ProjectTopSectionCreditClassCard: React.FC = ({ text: methodology?.['schema:name'], href: methodology?.['schema:url'], }} - program={program} + program={IS_REGEN ? program : undefined} sx={{ mt: [2, 4], py: [2, 6] }} />