File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
forms-flow-nav/src/services/user Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -31,17 +31,14 @@ export const fetchUserLoginDetails = () => {
3131 } ) ;
3232} ;
3333export 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
You can’t perform that action at this time.
0 commit comments