diff --git a/src/containers/TheContent.js b/src/containers/TheContent.js index dfb8ac9..f5ddb55 100644 --- a/src/containers/TheContent.js +++ b/src/containers/TheContent.js @@ -79,7 +79,7 @@ const TheContent = () => { return true; } - function usePathname(){ + function userPathname(){ const location = useLocation(); return location.pathname; } @@ -99,7 +99,7 @@ const TheContent = () => { const _empcode = UserData.employee_code; const json_str = '[{"firstname": "' + _firstname + '", "lastname":"' +_lastname+ '", "email":" ' + _email + '", "empcode": "' + _empcode + '"}]'; if(_empcode !== null && _empcode !== undefined){ - console.log(usePathname()); + console.log(userPathname()); postUserData(json_str); }