File tree 3 files changed +6
-15
lines changed
ProfilePage/Stats/HistoryGraph
challenge-detail/RecommendedActiveChallenges/ChallengesCard
challenge-listing/ChallengeCard
3 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ export default class HistoryGraph extends React.Component {
211
211
}
212
212
if ( track === 'DATA_SCIENCE' ) {
213
213
if ( subTrack === 'MARATHON_MATCH' ) {
214
- return `${ config . URL . COMMUNITY } /tc?module=MatchDetails&rd= ${ challengeId } ` ;
214
+ return `/challenges/ ${ challengeId } ` ;
215
215
}
216
216
if ( subTrack === 'SRM' ) {
217
217
return `${ config . URL . COMMUNITY } /stat?c=round_overview&rd=${ challengeId } ` ;
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import _ from 'lodash' ;
3
3
import PT from 'prop-types' ;
4
- import { config , Link } from 'topcoder-react-utils' ;
4
+ import { Link } from 'topcoder-react-utils' ;
5
5
import moment from 'moment' ;
6
6
import { TABS as DETAIL_TABS } from 'actions/page/challenge-details' ;
7
7
import {
@@ -32,19 +32,14 @@ export default function ChallengesCard({
32
32
} ) {
33
33
const {
34
34
id,
35
- subTrack,
36
35
legacy,
37
- status,
38
36
allPhases,
39
37
currentPhases,
40
38
} = challenge ;
41
39
42
40
const { track } = legacy ;
43
41
44
- let challengeDetailLink = `${ challengesUrl } /${ id } ` ;
45
- if ( track === 'DATA_SCIENCE' && subTrack === 'MARATHON_MATCH' && status === 'Active' ) {
46
- challengeDetailLink = `${ config . URL . COMMUNITY } /tc?module=MatchDetails&rd=${ id } ` ;
47
- }
42
+ const challengeDetailLink = `${ challengesUrl } /${ id } ` ;
48
43
49
44
const checkPhases = ( currentPhases && currentPhases . length > 0 ? currentPhases : allPhases ) ;
50
45
const statusPhase = checkPhases
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ import React from 'react';
3
3
import PT from 'prop-types' ;
4
4
import TrackIcon from 'components/TrackIcon' ;
5
5
import { TABS as DETAIL_TABS } from 'actions/page/challenge-details' ;
6
- import { config , Link } from 'topcoder-react-utils' ;
7
- import { isMM , isDevelopMM } from 'utils/challenge' ;
6
+ import { Link } from 'topcoder-react-utils' ;
7
+ import { isDevelopMM } from 'utils/challenge' ;
8
8
import {
9
9
getEndDate ,
10
10
PRIZE_MODE ,
@@ -42,7 +42,6 @@ function ChallengeCard({
42
42
const challenge = passedInChallenge ;
43
43
const {
44
44
id,
45
- status,
46
45
legacy,
47
46
} = challenge ;
48
47
@@ -53,10 +52,7 @@ function ChallengeCard({
53
52
}
54
53
challenge . prize = challenge . prizes || [ ] ;
55
54
56
- let challengeDetailLink = `${ challengesUrl } /${ id } ` ;
57
- if ( track === 'DATA_SCIENCE' && isMM ( challenge ) && status === 'Active' ) {
58
- challengeDetailLink = `${ config . URL . COMMUNITY } /tc?module=MatchDetails&rd=${ id } ` ;
59
- }
55
+ const challengeDetailLink = `${ challengesUrl } /${ id } ` ;
60
56
61
57
const subTrack = getChallengeSubTrack ( challenge . type , challengeTypes ) ;
62
58
if ( subTrack === 'DEVELOP_MARATHON_MATCH' ) {
You can’t perform that action at this time.
0 commit comments