File tree 2 files changed +7
-12
lines changed
components/Dashboard/CurrentActivity/Challenges/ChallengeCard
2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,6 @@ function normalizeSubTrackTagForRendering(subTrack) {
35
35
return _ . startCase ( _ . toLower ( x ) ) ;
36
36
}
37
37
38
- function normalizeSubTrack ( subTrack ) {
39
- const type = _ . upperCase ( subTrack ) ;
40
- return type . replace ( / / g, '_' ) ;
41
- }
42
-
43
38
export default function ChallengeCard ( {
44
39
challenge,
45
40
selectChallengeDetailsTab,
@@ -57,7 +52,11 @@ export default function ChallengeCard({
57
52
type,
58
53
} = challenge ;
59
54
60
- const subTrackId = _ . findKey ( challengeSubtracksMap , { abbreviation : normalizeSubTrack ( type ) } ) ;
55
+ let subTrackId = _ . findKey ( challengeSubtracksMap , { description : type } ) ;
56
+
57
+ if ( ! subTrackId ) {
58
+ subTrackId = _ . findKey ( challengeSubtracksMap , { description : 'Code' } ) ;
59
+ }
61
60
62
61
const { track } = legacy ;
63
62
@@ -229,7 +228,7 @@ export default function ChallengeCard({
229
228
) : null
230
229
}
231
230
{
232
- submitter && isChallengeOpen ? (
231
+ submitter && isChallengeOpen && phaseMessage !== STALLED_MSG ? (
233
232
< Button
234
233
size = "sm"
235
234
theme = { { button : style . button } }
Original file line number Diff line number Diff line change @@ -34,13 +34,9 @@ class SubmissionsPageContainer extends React.Component {
34
34
getCommunitiesList,
35
35
challengeId,
36
36
loadChallengeDetails,
37
- challengeName,
38
37
} = this . props ;
39
38
40
- if ( ! challengeName ) {
41
- loadChallengeDetails ( auth , challengeId ) ;
42
- }
43
-
39
+ loadChallengeDetails ( auth , challengeId ) ;
44
40
getCommunitiesList ( auth ) ;
45
41
}
46
42
You can’t perform that action at this time.
0 commit comments