Skip to content

Commit

Permalink
Remove duplicate checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jasperhuangg committed Jul 28, 2021
1 parent 3b545d0 commit 8b291cc
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/pages/ReimbursementAccount/CompanyStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,11 @@ class CompanyStep extends React.Component {
* @returns {Boolean}
*/
validate() {
if (!this.state.password.trim()) {
Growl.error(this.props.translate('common.passwordCannotBeBlank'));
return false;
}

if (!isValidAddress(this.state.addressStreet)) {
Growl.error(this.props.translate('bankAccount.error.addressStreet'));
return false;
}

if (this.state.addressState === '') {
Growl.error(this.props.translate('bankAccount.error.addressState'));
return false;
}

if (!isValidZipCode(this.state.addressZipCode)) {
Growl.error(this.props.translate('bankAccount.error.zipCode'));
return false;
Expand Down

0 comments on commit 8b291cc

Please sign in to comment.