Skip to content

Commit

Permalink
Merge pull request #4531 from Expensify/joe-required-checkbox
Browse files Browse the repository at this point in the history
Require restricted business checkbox on CompanyStep
  • Loading branch information
NikkiWines authored Aug 10, 2021
2 parents e1b046e + fa59714 commit 75a1fe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/ReimbursementAccount/CompanyStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,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);
const missingRequiredFields = this.requiredFields.reduce((acc, curr) => acc || !this.state[curr].trim(), false);
const shouldDisableSubmitButton = !this.state.hasNoConnectionToCannabis || missingRequiredFields;

return (
<>
Expand Down

0 comments on commit 75a1fe0

Please sign in to comment.