set funding state back to not approved when amount is 0

This commit is contained in:
Barry Gitarts 2019-12-19 12:19:15 -05:00
parent 7d3cd5ce52
commit 5346af5d2d

View File

@ -157,9 +157,11 @@ const SubmissionSection = ({ classes, projectData, projectId, profileData, start
}) })
.then(async res => { .then(async res => {
console.log({res}) console.log({res})
setSubmissionState(APPROVED) if (Number(amount) !== 0) setSubmissionState(APPROVED)
else setSubmissionState(NOT_APPROVED)
}) })
.catch(e => console.log({e})) .catch(e => console.log({e}))
} }
const args = [projectId, goalToken, fundToken, weiAmount, userAccount] const args = [projectId, goalToken, fundToken, weiAmount, userAccount]