ensure not not connected view

This commit is contained in:
Barry Gitarts 2020-01-08 09:54:35 -05:00 committed by Barry G
parent 312396f8e3
commit cad9a36e20
1 changed files with 3 additions and 1 deletions

View File

@ -61,7 +61,9 @@ const addProjectSucessMsg = response => {
const STEPS = ['Connect', 'Authorize Amount', 'Fund', 'Confirm']
const buttonText = ['Connect', 'Authorize Amount', 'Fund', 'Submitted', 'Confirmed']
async function stepperProgress(values, projectData, submissionState, currencies) {
if (!values.fundToken) return IS_APPROVED
if (!values.fundToken) {
return !projectData.account ? NOT_CONNECTED : IS_APPROVED
}
const { amount, fundToken } = values
if (Number(amount) === 0) return NOT_APPROVED
if (submissionState === CONFIRMED) return IS_CONFIRMED