Skip to content

Commit cebfd8b

Browse files
committed
Hotfix - Remove old legacy.track
Also update version to 1000.19.48
1 parent f39c012 commit cebfd8b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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": "1000.19.47",
34+
"version": "1000.19.48",
3535
"dependencies": {
3636
"auth0-js": "^6.8.4",
3737
"config": "^3.2.0",

src/reducers/challenge.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ export function factory(options = {}) {
469469
tokens.tokenV2,
470470
)).then((res) => {
471471
const challengeDetails = _.get(res, 'payload', {});
472-
const track = _.get(challengeDetails, 'legacy.track', '');
472+
const track = _.get(challengeDetails, 'track', '');
473473
let checkpointsPromise = null;
474474
if (track === COMPETITION_TRACKS.DESIGN) {
475475
const p = _.get(challengeDetails, 'phases', [])

src/services/challenges.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export function normalizeChallenge(challenge, username) {
5959
}
6060
const prizes = (challenge.prizeSets[0] && challenge.prizeSets[0].prizes) || [];
6161
_.defaults(challenge, {
62-
communities: new Set([COMPETITION_TRACKS[challenge.legacy.track]]),
62+
communities: new Set([COMPETITION_TRACKS[challenge.track]]),
6363
groups,
6464
registrationOpen,
6565
submissionEndTimestamp,

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