Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaaron committed Jun 19, 2021
1 parent 8adda3e commit d72e8f1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/pages/ReimbursementAccount/CompanyStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,21 @@ class CompanyStep extends React.Component {

/**
* Validating that this is a valid address (PO boxes are not allowed)
*
* @param {String} value
* @returns {Boolean}
*/
isValidAddress(value) {
const isEmpty = !CONST.REGEX.ANY_VALUE.test(value);
if (isEmpty) {
if (!CONST.REGEX.ANY_VALUE.test(value)) {
return false;
}

// eslint-disable-next-line max-len
const isPoBox = CONST.REGEX.PO_BOX.test(value);
return !isPoBox;
return !CONST.REGEX.PO_BOX.test(value);
}

/**
* Validate date fields
*
* @param {String} date
* @returns {Boolean} true if valid
*/
Expand Down

0 comments on commit d72e8f1

Please sign in to comment.