From 4b2bcb707e91e47287be0e35a62097520f72b29d Mon Sep 17 00:00:00 2001 From: Cagdas U Date: Thu, 3 Sep 2020 17:51:39 +0300 Subject: [PATCH] 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/community-app#4765 --- src/shared/containers/challenge-detail/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/containers/challenge-detail/index.jsx b/src/shared/containers/challenge-detail/index.jsx index 3bb14e4c1b..bb3c1e9dbb 100644 --- a/src/shared/containers/challenge-detail/index.jsx +++ b/src/shared/containers/challenge-detail/index.jsx @@ -244,7 +244,7 @@ class ChallengeDetailPageContainer extends React.Component { } const { track } = nextProps.challenge; - if (track === COMPETITION_TRACKS.DESIGN && thriveArticles.length === 0) { + if (track !== COMPETITION_TRACKS.DESIGN && thriveArticles.length === 0) { // filter all tags with value 'Other' const tags = _.filter(nextProps.challenge.tags, tag => tag !== 'Other'); if (tags.length > 0) {