mirror of
https://github.com/status-im/liquid-funding.git
synced 2025-02-06 16:43:53 +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 => {
|
.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]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user