Skip to content

Commit 4b2bcb7

Browse files
committed
fix(challenge-detail): condition for showing thrive articles
Fix a typo in if condition used to show thrive articles. - It was showing them only for the Design track. - Articles will be shown for all tracks except for the Design track. References topcoder-platform#4765
1 parent 3c91974 commit 4b2bcb7

File tree

1 file changed

+1
-1
lines changed
  • src/shared/containers/challenge-detail

1 file changed

+1
-1
lines changed

src/shared/containers/challenge-detail/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ class ChallengeDetailPageContainer extends React.Component {
244244
}
245245

246246
const { track } = nextProps.challenge;
247-
if (track === COMPETITION_TRACKS.DESIGN && thriveArticles.length === 0) {
247+
if (track !== COMPETITION_TRACKS.DESIGN && thriveArticles.length === 0) {
248248
// filter all tags with value 'Other'
249249
const tags = _.filter(nextProps.challenge.tags, tag => tag !== 'Other');
250250
if (tags.length > 0) {

0 commit comments

Comments
 (0)