From b2c3c9706acd57aca40a1441330cba9323e465ef Mon Sep 17 00:00:00 2001 From: Barry Gitarts Date: Thu, 21 Mar 2019 15:10:55 -0400 Subject: [PATCH] remove empty pledges from drop down list --- app/components/projects/BackProject.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/projects/BackProject.jsx b/app/components/projects/BackProject.jsx index 0e366e2..d09e329 100644 --- a/app/components/projects/BackProject.jsx +++ b/app/components/projects/BackProject.jsx @@ -65,7 +65,7 @@ const SubmissionSection = ({ classes, profiles, delegatePledges }) => { setStatus, status }) => { - const filteredPledges = values.delegateProfile ? delegatePledges.filter(d => d.profile.id == values.delegateProfile.id) : null + const filteredPledges = values.delegateProfile ? delegatePledges.filter(d => d.profile.id == values.delegateProfile.id && d.pledgeData.amount != '0') : null return (