added user csv data

This commit is contained in:
2021-08-23 18:02:13 +05:30
parent 06365d9952
commit 0fd911a113

View File

@ -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);
}