remove empty pledges from drop down list
This commit is contained in:
parent
245fed55db
commit
b2c3c9706a
|
@ -65,7 +65,7 @@ const SubmissionSection = ({ classes, profiles, delegatePledges }) => {
|
||||||
setStatus,
|
setStatus,
|
||||||
status
|
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 (
|
return (
|
||||||
<form onSubmit={handleSubmit} className={classes.submissionRoot}>
|
<form onSubmit={handleSubmit} className={classes.submissionRoot}>
|
||||||
<TextField
|
<TextField
|
||||||
|
|
Loading…
Reference in New Issue