From 43f188aa058bbe09ccdeb948d1dea42fb3c45a85 Mon Sep 17 00:00:00 2001 From: VH Date: Wed, 20 Sep 2023 10:13:45 +0700 Subject: [PATCH] Fix linter --- src/pages/settings/Security/CloseAccountPage.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pages/settings/Security/CloseAccountPage.js b/src/pages/settings/Security/CloseAccountPage.js index bc66ae03c947..63ff9062bb8f 100644 --- a/src/pages/settings/Security/CloseAccountPage.js +++ b/src/pages/settings/Security/CloseAccountPage.js @@ -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'];