Skip to content

Commit

Permalink
fix: hide program on terrasos in project card (#2561)
Browse files Browse the repository at this point in the history
  • Loading branch information
flagrede authored Nov 26, 2024
1 parent 67da47f commit b0181e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -81,7 +81,7 @@ export const ProjectTopSectionCreditClassCard: React.FC<Props> = ({
text: methodology?.['schema:name'],
href: methodology?.['schema:url'],
}}
program={program}
program={IS_REGEN ? program : undefined}
sx={{ mt: [2, 4], py: [2, 6] }}
/>
</Link>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ export const AllProjects: React.FC<React.PropsWithChildren<unknown>> = () => {
project,
_,
})}
program={project.program}
program={IS_REGEN ? project.program : undefined}
projectPrefinancing={project.projectPrefinancing}
offChain={config.buyButton ? project.offChain : true}
draftText={_(DRAFT_TEXT)}
Expand Down

0 comments on commit b0181e7

Please sign in to comment.