Skip to content

Commit 1d6298f

Browse files
Merge pull request topcoder-platform#285 from topcoder-platform/tcx-202011
Smoke Testing 2020/11/24 - Fix prizeSets logical to get 'placements' instead first one
2 parents 7512db6 + 38a454b commit 1d6298f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- attach_workspace:
2929
at: .
3030
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
31-
- run: npm publish
31+
- run: npm publish --tag test-release
3232
# dont change anything
3333
workflows:
3434
version: 2

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"lint:js": "./node_modules/.bin/eslint --ext .js,.jsx .",
3232
"test": "npm run lint && npm run jest"
3333
},
34-
"version": "1.1.2",
34+
"version": "1000.25.9",
3535
"dependencies": {
3636
"auth0-js": "^6.8.4",
3737
"config": "^3.2.0",

src/services/challenges.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ export function normalizeChallenge(challenge, username) {
9494
if (submissionEndTimestamp) {
9595
submissionEndTimestamp = submissionEndTimestamp.scheduledEndDate;
9696
}
97-
const prizes = (challenge.prizeSets[0] && challenge.prizeSets[0].prizes) || [];
97+
const placementPrizes = _.find(challenge.prizeSets, { type: 'placement' });
98+
const { prizes } = placementPrizes || [];
9899
_.defaults(challenge, {
99100
communities: new Set([COMPETITION_TRACKS[challenge.track]]),
100101
groups,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

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:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy