remove empty pledges from drop down list

This commit is contained in:
Barry Gitarts 2019-03-21 15:10:55 -04:00 committed by Barry G
parent 245fed55db
commit b2c3c9706a
1 changed files with 1 additions and 1 deletions

View File

@ -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 (
<form onSubmit={handleSubmit} className={classes.submissionRoot}>
<TextField