Skip to content

Commit a455c5f

Browse files
authored
Merge pull request #31 from zenml-io/talha/feedback-fixes
remove dead code
2 parents 168f715 + 737ce0e commit a455c5f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/api/organizations/getInviteByCodeApi.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { fetchApiWithAuthRequest } from '../fetchApi';
22
import { endpoints } from '../endpoints';
33
import { httpMethods } from '../constants';
44
import { apiUrl } from '../apiUrl';
5-
import mockApi from '../mockApiData';
5+
// import mockApi from '../mockApiData';
66

77
const 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

2720
export default getInviteByCodeApi;

0 commit comments

Comments
 (0)