diff --git a/src/pages/ReimbursementAccount/CompanyStep.js b/src/pages/ReimbursementAccount/CompanyStep.js index 5f8732b881ef..c0fc39effba9 100644 --- a/src/pages/ReimbursementAccount/CompanyStep.js +++ b/src/pages/ReimbursementAccount/CompanyStep.js @@ -45,6 +45,20 @@ class CompanyStep extends React.Component { hasNoConnectionToCannabis: lodashGet(props, ['achData', 'hasNoConnectionToCannabis'], false), password: '', }; + + // These fields need to be filled out in order to submit the form + this.requiredFields = [ + 'companyName', + 'addressStreet', + 'addressCity', + 'addressState', + 'addressZipCode', + 'website', + 'companyTaxID', + 'incorporationDate', + 'industryCode', + 'password', + ]; } /** @@ -111,6 +125,8 @@ class CompanyStep extends React.Component { render() { const shouldDisableCompanyName = Boolean(this.props.achData.bankAccountID && this.props.achData.companyName); const shouldDisableCompanyTaxID = Boolean(this.props.achData.bankAccountID && this.props.achData.companyTaxID); + const shouldDisableSubmitButton = this.requiredFields + .reduce((acc, curr) => acc || !this.state[curr].trim(), false); return ( <>