Skip to content

Commit bfe04b7

Browse files
committed
fix for issue #4384
1 parent 620e971 commit bfe04b7

File tree

1 file changed

+8
-1
lines changed
  • src/shared/actions/challenge-listing

1 file changed

+8
-1
lines changed

src/shared/actions/challenge-listing/index.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,16 @@ function getAllActiveChallengesWithUsersDone(uuid, tokenV3, filter, page = 0) {
9595
let user;
9696
if (tokenV3) {
9797
user = decodeToken(tokenV3).userId;
98+
99+
const newFilter = _.mapKeys(filter, (value, key) => {
100+
if (key === 'tag') return 'technologies';
101+
102+
return key;
103+
});
104+
98105
// Handle any errors on this endpoint so that the non-user specific challenges
99106
// will still be loaded.
100-
calls.push(getAll(params => service.getUserChallenges(user, filter, params)
107+
calls.push(getAll(params => service.getUserChallenges(user, newFilter, params)
101108
.catch(() => ({ challenges: [] }))), page);
102109
}
103110
return Promise.all(calls).then(([ch, uch]) => {

0 commit comments

Comments
 (0)