diff --git a/__tests__/shared/actions/challenge-listing/index.js b/__tests__/shared/actions/challenge-listing/index.js index 410ab5722..c2a918424 100644 --- a/__tests__/shared/actions/challenge-listing/index.js +++ b/__tests__/shared/actions/challenge-listing/index.js @@ -60,7 +60,7 @@ describe('live challenge listing filters', () => { })); }); - test('only requests My Challenges with an open submission phase', async () => { + test('requests all active challenges registered to the member', async () => { const action = actions.getMyChallengesDone( 'my-uuid', 0, @@ -74,11 +74,12 @@ describe('live challenge listing filters', () => { expect(mockGetChallenges).toHaveBeenCalledWith(expect.objectContaining({ backendFilter, frontFilter: expect.objectContaining({ - currentPhaseName: 'Submission', memberId: '123', status: 'ACTIVE', }), })); + expect(mockGetChallenges.mock.calls[0][0].frontFilter) + .not.toHaveProperty('currentPhaseName'); }); test('counts only live challenges with an open submission phase', async () => { diff --git a/src/shared/actions/challenge-listing/index.js b/src/shared/actions/challenge-listing/index.js index a1f1c6f3a..67cd3acb1 100644 --- a/src/shared/actions/challenge-listing/index.js +++ b/src/shared/actions/challenge-listing/index.js @@ -303,7 +303,6 @@ function getMyChallengesDone(uuid, page, backendFilter, tokenV3, frontFilter = { ...frontFilter, ...extractSearchFilter(frontFilter), status: 'ACTIVE', - currentPhaseName: 'Submission', memberId: userId, perPage: PAGE_SIZE, page: page + 1,