Skip to content

Commit 6c2cee0

Browse files
author
vikasrohit
committed
SUP-3058, Adapt FE according to new json structure of challenge endpoint
-- Fixed lint errors
1 parent 1235c31 commit 6c2cee0

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

app/services/challenge.service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ import moment from 'moment'
193193
return submission.type === CONSTANTS.SUBMISSION_TYPE_CONTEST
194194
&& (submission.status === CONSTANTS.STATUS_ACTIVE
195195
|| submission.status === CONSTANTS.STATUS_COMPLETED_WITHOUT_WIN)
196-
}).length > 0;
196+
}).length > 0
197197
}
198198
if (challenge.highestPlacement === 0) {
199199
challenge.highestPlacement = null

app/services/challenge.service.spec.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -434,12 +434,12 @@ describe('Challenge Service', function() {
434434
roles: ['Submitter'],
435435
winningPlacements: [
436436
{
437-
"submissionId": 12345,
438-
"submitterId": 123456,
439-
"amount": 500.0,
440-
"placed": 1,
441-
"finalScore": 98.0,
442-
"challengeId": 30041345
437+
'submissionId': 12345,
438+
'submitterId': 123456,
439+
'amount': 500.0,
440+
'placed': 1,
441+
'finalScore': 98.0,
442+
'challengeId': 30041345
443443
}
444444
],
445445
submissions: [
@@ -491,12 +491,12 @@ describe('Challenge Service', function() {
491491
roles: ['Submitter'],
492492
winningPlacements: [
493493
{
494-
"submissionId": 12345,
495-
"submitterId": 123456,
496-
"amount": 500.0,
497-
"placed": 1,
498-
"finalScore": 98.0,
499-
"challengeId": 30041345
494+
'submissionId': 12345,
495+
'submitterId': 123456,
496+
'amount': 500.0,
497+
'placed': 1,
498+
'finalScore': 98.0,
499+
'challengeId': 30041345
500500
}
501501
],
502502
submissions: [
@@ -598,12 +598,12 @@ describe('Challenge Service', function() {
598598
roles: ['Submitter'],
599599
winningPlacements: [
600600
{
601-
"submissionId": 12345,
602-
"submitterId": 123456,
603-
"amount": 500.0,
604-
"placed": 1,
605-
"finalScore": 98.0,
606-
"challengeId": 30041345
601+
'submissionId': 12345,
602+
'submitterId': 123456,
603+
'amount': 500.0,
604+
'placed': 1,
605+
'finalScore': 98.0,
606+
'challengeId': 30041345
607607
}
608608
],
609609
submissions: [

0 commit comments

Comments
 (0)