From 864a5ed1e9bc365c6235bb4c7163ac3652cfa316 Mon Sep 17 00:00:00 2001 From: Barry Gitarts Date: Mon, 5 Aug 2019 11:21:58 -0400 Subject: [PATCH] add pledged text --- src/components/projects/FundProject.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/projects/FundProject.jsx b/src/components/projects/FundProject.jsx index acffc5c..3ffe028 100644 --- a/src/components/projects/FundProject.jsx +++ b/src/components/projects/FundProject.jsx @@ -212,6 +212,7 @@ const SubmissionSection = ({ classes, history, projectData, projectId, pledges, const isVideo = useMemo(() => getMediaType(projectAssets), [projectAssets, projectId]) const mediaUrl = useMemo(() => getMediaSrc(projectAssets), [projectAssets, projectId]) const createdDate = getDateCreated(projectAge) + const totalPledged = amountsPledged[0] ? amountsPledged[0][1] : 0 console.log({createdDate, projectAge, projectAssets, manifest, amountsPledged, numberOfBackers, isVideo, mediaUrl}) return ( @@ -318,6 +319,9 @@ const SubmissionSection = ({ classes, history, projectData, projectId, pledges, }
Edit
+ + {`${totalPledged.toLocaleString()} ${amountsPledged[0] ? amountsPledged[0][0] : ''}`} pledged +