mirror of
https://github.com/status-im/liquid-funding.git
synced 2025-01-28 20:25:19 +00:00
set funding state back to not approved when amount is 0
This commit is contained in:
parent
7d3cd5ce52
commit
5346af5d2d
@ -157,9 +157,11 @@ const SubmissionSection = ({ classes, projectData, projectId, profileData, start
|
||||
})
|
||||
.then(async res => {
|
||||
console.log({res})
|
||||
setSubmissionState(APPROVED)
|
||||
if (Number(amount) !== 0) setSubmissionState(APPROVED)
|
||||
else setSubmissionState(NOT_APPROVED)
|
||||
})
|
||||
.catch(e => console.log({e}))
|
||||
|
||||
}
|
||||
|
||||
const args = [projectId, goalToken, fundToken, weiAmount, userAccount]
|
||||
|
Loading…
x
Reference in New Issue
Block a user