Skip to content

Commit 8978058

Browse files
committed
code 30090056
code 30090056
1 parent f8f8bd8 commit 8978058

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/actions/challenge-listing.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,9 @@ function getActiveChallengesDone(
191191
user = decodeToken(tokenV3).handle;
192192
// Handle any errors on this endpoint so that the non-user specific challenges
193193
// will still be loaded.
194-
calls.push(service.getUserChallenges(user, filter, {
195-
limit: PAGE_SIZE,
196-
offset: page * PAGE_SIZE,
197-
}).catch(() => ({ challenges: [] })));
194+
calls.push(getAll(
195+
params => service.getUserChallenges(user, filter, params).catch(() => ({ challenges: [] })),
196+
));
198197
}
199198
return Promise.all(calls).then(([ch, uch]) => {
200199
/* uch array contains challenges where the user is participating in

0 commit comments

Comments
 (0)