Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangzinh committed Sep 20, 2023
1 parent 87eed74 commit 43f188a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pages/settings/Security/CloseAccountPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,9 @@ function CloseAccountPage(props) {
/**
* Removes spaces and transform the input string to lowercase.
* @param {String} phoneOrEmail - The input string to be sanitized.
* @returns The sanitized string
* @returns {String} The sanitized string
*/
const sanitizePhoneOrEmail = (phoneOrEmail) => {
return phoneOrEmail.replace(/\s+/g, '').toLowerCase();
}
const sanitizePhoneOrEmail = (phoneOrEmail) => phoneOrEmail.replace(/\s+/g, '').toLowerCase();

const validate = (values) => {
const requiredFields = ['phoneOrEmail'];
Expand Down

0 comments on commit 43f188a

Please sign in to comment.