Skip to content

Commit a7c3e22

Browse files
committed
Revert "Only show download for MM challenge type, not tag"
This reverts commit 5061db9. # Conflicts: # src/shared/components/challenge-detail/Submissions/index.jsx
1 parent f359796 commit a7c3e22

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

src/shared/components/challenge-detail/Submissions/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import React from 'react';
77
import PT from 'prop-types';
88
import moment from 'moment';
9-
import { isMM as checkIsMM, isMMByType as checkIsMMByType } from 'utils/challenge';
9+
import { isMM as checkIsMM } from 'utils/challenge';
1010
import _ from 'lodash';
1111
import { connect } from 'react-redux';
1212
import { config } from 'topcoder-react-utils';
@@ -604,7 +604,7 @@ class SubmissionsComponent extends React.Component {
604604
}
605605
{
606606
((numWinners > 0 || challenge.status === CHALLENGE_STATUS.COMPLETED)
607-
&& checkIsMMByType(challenge) && isLoggedIn) && (
607+
&& isMM && isLoggedIn) && (
608608
<div styleName="block-download-all">
609609
<button
610610
disabled={downloadingAll}

src/shared/utils/challenge.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@ export function isMM(challenge) {
1313
return tags.includes('Marathon Match') || isMMType;
1414
}
1515

16-
/**
17-
* check if is marathon match challenge by type only (ignore MM tags)
18-
* @param {Object} challenge challenge object
19-
*/
20-
export function isMMByType(challenge) {
21-
const isMMType = challenge ? challenge.type === 'Marathon Match' : false;
22-
return isMMType;
23-
}
2416
/**
2517
* Set challenge type to challenge
2618
* @param {Object} challenges challenge object
@@ -37,6 +29,5 @@ export function updateChallengeType(challenges, challengeTypeMap) {
3729

3830
export default {
3931
isMM,
40-
isMMByType,
4132
updateChallengeType,
4233
};

0 commit comments

Comments
 (0)