use fundToken for approval

This commit is contained in:
Barry Gitarts 2020-01-08 13:22:27 -05:00 committed by Barry G
parent cad9a36e20
commit a483e1cd45
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ const SubmissionSection = ({ classes, projectData, projectId, profileData, start
if (!activeStep) return enableEthereum() if (!activeStep) return enableEthereum()
const { amount, fundToken } = values const { amount, fundToken } = values
const { goalToken } = manifest const { goalToken } = manifest
const { chainReadibleFn } = getTokenByAddress(goalToken, currencies) const { chainReadibleFn } = getTokenByAddress(fundToken, currencies)
const userAccount = account ? account : await enableEthereum() const userAccount = account ? account : await enableEthereum()
const weiAmount = chainReadibleFn(amount) const weiAmount = chainReadibleFn(amount)
if (activeStep === NOT_APPROVED) { if (activeStep === NOT_APPROVED) {