File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { fetchApiWithAuthRequest } from '../fetchApi';
22import { endpoints } from '../endpoints' ;
33import { httpMethods } from '../constants' ;
44import { apiUrl } from '../apiUrl' ;
5- import mockApi from '../mockApiData' ;
5+ // import mockApi from '../mockApiData';
66
77const getInviteByCodeApi = ( {
88 username,
@@ -15,13 +15,6 @@ const getInviteByCodeApi = ({
1515 url : apiUrl ( endpoints . organizations . reGenerateToken ( username ) ) ,
1616 method : httpMethods . put ,
1717 authenticationToken,
18- } ) . catch ( ( res ) => {
19- if ( process . env . REACT_APP_MOCKAPI_RESPONSE ) {
20- res = {
21- data : mockApi . myOrganizationMockResponse . myOrganizationInviteMockResponse ,
22- } ;
23- }
24- return res ;
2518 } ) ;
2619
2720export default getInviteByCodeApi ;
You can’t perform that action at this time.
0 commit comments