Skip to content

Commit

Permalink
review: use only on-chain description
Browse files Browse the repository at this point in the history
  • Loading branch information
flagrede committed Sep 7, 2023
1 parent 7bda2b2 commit 224b870
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,7 @@ export default function ProjectImpactCard({
</Title>
{description && (
<Body as="div" size="sm" mobileSize="sm" sx={{ pb: 4 }}>
{typeof description === 'string' ? (
description
) : (
<BlockContent content={description} />
)}
{description}
</Body>
)}
<Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ const normalizeImpact = ({
sdgs,
}: NormalizeImpactInput) => ({
name: impact?.['schema:name'] || sanityImpact?.name,
description:
projectImpact?.['schema:description'] || sanityImpact?.descriptionRaw,
description: projectImpact?.['schema:description'],
imgSrc: getSanityImgSrc(sanityImpact?.image) || '/svg/default-impact.svg',
sdgs: getSdgsImages({ sdgs: sanityImpact?.sdgs || sdgs }),
standard: getSanityImgSrc(sanityImpact?.standard),
Expand Down

0 comments on commit 224b870

Please sign in to comment.