Skip to content

Commit d4ca3be

Browse files
committed
updated with actual api call
1 parent 9906ddb commit d4ca3be

File tree

1 file changed

+2
-5
lines changed
  • forms-flow-nav/src/services/user

1 file changed

+2
-5
lines changed

forms-flow-nav/src/services/user/index.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,14 @@ export const fetchUserLoginDetails = () => {
3131
});
3232
};
3333
export const getOnBoardingUserRole = () => {
34-
const url = API.USER_INFO_UPDATE;
34+
const url = API.ONBOARDING_USER_ROLE;
3535
return RequestService.httpGETRequest(url)
3636
.then((res)=>{
3737
if(res.data){
3838
localStorage.setItem("ONBOARDINGUSERROLE", res.data.role);
3939
}
4040
}).catch((err)=>{
41-
// the api is not ready yet, so we are setting the default role to operations
42-
// will replace with actual catch block once the api is ready
43-
localStorage.setItem("ONBOARDINGUSERROLE", "finance");
44-
console.error("getOnBoardingUserRole error:", err);
41+
console.error(" Error in getting on boarding user role:", err);
4542
});
4643
};
4744

0 commit comments

Comments
 (0)