Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit b0bc39b

Browse files
committed
fix: issue #462
1 parent 5aae139 commit b0bc39b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/services/roles.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22
* Topcoder TaaS Service for Roles
33
*/
44
import { axiosInstance as axios } from "./requestInterceptor";
5+
import _ from "lodash";
56
import config from "../../config";
67

78
/**
89
* Returns a list of roles.
910
*/
1011
export function getRoles() {
11-
return axios.get(`${config.API.V5}/taas-roles`);
12+
return axios.get(`${config.API.V5}/taas-roles`).then((response)=>{
13+
response.data = _.filter(response.data, role => _.find(role.rates, r => r.global))
14+
return response
15+
});
1216
}
1317

1418
/**

0 commit comments

Comments
 (0)