diff --git a/__tests__/__snapshots__/index.js.snap b/__tests__/__snapshots__/index.js.snap index f1c7c70a..14a33782 100644 --- a/__tests__/__snapshots__/index.js.snap +++ b/__tests__/__snapshots__/index.js.snap @@ -303,6 +303,7 @@ Object { "SUBMISSION_END_DATE": "submissionEndDate", }, "default": undefined, + "fixColorStyle": [Function], "getService": [Function], "normalizeChallenge": [Function], }, diff --git a/src/services/challenges.js b/src/services/challenges.js index 32861093..5c453f66 100644 --- a/src/services/challenges.js +++ b/src/services/challenges.js @@ -363,7 +363,7 @@ class ChallengesService { /* Prepare data to logged user */ if (memberId) { - isRegistered = _.some(registrants, r => r.memberId === memberId); + isRegistered = _.some(registrants, r => `${r.memberId}` === `${memberId}`); const subParams = { challengeId, @@ -381,7 +381,7 @@ class ChallengesService { // Add submission date to registrants registrants.forEach((r, i) => { - const submission = submissions.find(s => s.memberId === Number(r.memberId)); + const submission = submissions.find(s => `${s.memberId}` === `${r.memberId}`); if (submission) { registrants[i].submissionDate = submission.created; }
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: