diff --git a/__tests__/shared/components/ChallengeTile/__snapshots__/index.jsx.snap b/__tests__/shared/components/ChallengeTile/__snapshots__/index.jsx.snap index 26ba777088..c733309a43 100644 --- a/__tests__/shared/components/ChallengeTile/__snapshots__/index.jsx.snap +++ b/__tests__/shared/components/ChallengeTile/__snapshots__/index.jsx.snap @@ -202,12 +202,15 @@ exports[`renders marathon 1`] = ` className="src-shared-components-ChallengeTile-___style__completed-challenge___3w5tT" >
- - 2018 TCO Marathon - + + 2018 TCO Marathon + +

diff --git a/src/shared/components/ChallengeTile/index.jsx b/src/shared/components/ChallengeTile/index.jsx index 47e389c869..87f935e7fe 100644 --- a/src/shared/components/ChallengeTile/index.jsx +++ b/src/shared/components/ChallengeTile/index.jsx @@ -2,7 +2,6 @@ * Challenge tile. */ /* eslint-env browser */ -import _ from 'lodash'; import React from 'react'; import PT from 'prop-types'; import { Link } from 'react-router-dom'; @@ -83,36 +82,27 @@ class ChallengeTile extends React.Component { margin: '10px 5px', }; - const isDataScience = track === COMPETITION_TRACKS.DATA_SCIENCE; const isDevelopment = track === COMPETITION_TRACKS.DEVELOP; const isDesign = track === COMPETITION_TRACKS.DESIGN; - const roundId = isDataScience ? _.get(challenge, 'rounds.0.id') : 0; - return (

- { !isDataScience && (!challenge.isPrivate + { !challenge.isPrivate ? ( { challenge.name } - ) : ( + ) + : ( { challenge.name } - )) } - - { isDataScience - && ( - - { challenge.name } - - ) } + )}

{underscoreReplace(type)}