From 0fd911a1132b4d75f1f3cdea260d31be2ad8d306 Mon Sep 17 00:00:00 2001 From: nouffer Date: Mon, 23 Aug 2021 18:02:13 +0530 Subject: [PATCH] added user csv data --- src/containers/TheContent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }