From cad9a36e20f4653c5966ca6ccf283098997017df Mon Sep 17 00:00:00 2001 From: Barry Gitarts Date: Wed, 8 Jan 2020 09:54:35 -0500 Subject: [PATCH] ensure not not connected view --- src/components/projects/FundProject.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/projects/FundProject.jsx b/src/components/projects/FundProject.jsx index 354cf6b..7da8c45 100644 --- a/src/components/projects/FundProject.jsx +++ b/src/components/projects/FundProject.jsx @@ -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