File tree Expand file tree Collapse file tree 4 files changed +21
-7
lines changed
components/challenge-listing/Listing/Bucket
containers/challenge-detail Expand file tree Collapse file tree 4 files changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -343,7 +343,6 @@ workflows:
343343 branches :
344344 only :
345345 - develop
346- - docusign-cors
347346 # This is alternate dev env for parallel testing
348347 - " build-test " :
349348 context : org-global
@@ -357,14 +356,14 @@ workflows:
357356 filters :
358357 branches :
359358 only :
360- - ref-email-tracking
359+ - free
361360 # This is beta env for production soft releases
362361 - " build-prod-beta " :
363362 context : org-global
364363 filters :
365364 branches :
366365 only :
367- - slash-home-hotfix
366+ - free
368367 # This is stage env for production QA releases
369368 - " build-prod-staging " :
370369 context : org-global
Original file line number Diff line number Diff line change 150150 "supertest" : " ^3.1.0" ,
151151 "tc-core-library-js" : " github:appirio-tech/tc-core-library-js#v2.6.3" ,
152152 "tc-ui" : " ^1.0.12" ,
153- "topcoder-react-lib" : " 1.2.0 " ,
153+ "topcoder-react-lib" : " 1.2.1 " ,
154154 "topcoder-react-ui-kit" : " 2.0.1" ,
155155 "topcoder-react-utils" : " 0.7.8" ,
156156 "turndown" : " ^4.0.2" ,
Original file line number Diff line number Diff line change @@ -77,6 +77,19 @@ export default function Bucket({
7777 } else {
7878 sortedChallenges = _ . clone ( challenges ) ;
7979 }
80+
81+ let filteredChallenges = sortedChallenges ;
82+ filteredChallenges = sortedChallenges . filter ( ( ch ) => {
83+ if ( ch . type === 'Task'
84+ && ch . task
85+ && ch . task . isTask
86+ && ch . task . isAssigned
87+ && Number ( ch . task . memberId ) !== Number ( userId ) ) {
88+ return null ;
89+ }
90+ return ch ;
91+ } ) ;
92+
8093 // sortedChallenges.sort(Sort[activeSort].func);
8194
8295 // const bucketQuery = qs.stringify({
@@ -118,14 +131,14 @@ export default function Bucket({
118131 // );
119132 // }
120133
121- if ( ! loading && sortedChallenges . length === 0 ) {
134+ if ( ! loading && filteredChallenges . length === 0 ) {
122135 return (
123136 < div styleName = "no-results" >
124137 { ( filterState . recommended && activeBucket === 'openForRegistration' ) ? null : `${ NO_LIVE_CHALLENGES_CONFIG [ activeBucket ] } ` }
125138 </ div >
126139 ) ;
127140 }
128- const cards = sortedChallenges . map ( challenge => (
141+ const cards = filteredChallenges . map ( challenge => (
129142 < ChallengeCard
130143 challenge = { challenge }
131144 challengeType = { _ . find ( challengeTypes , { name : challenge . type } ) }
Original file line number Diff line number Diff line change @@ -401,7 +401,9 @@ class ChallengeDetailPageContainer extends React.Component {
401401 }
402402
403403 let winners = challenge . winners || [ ] ;
404- winners = winners . filter ( w => ! w . type || w . type === 'final' ) ;
404+ if ( challenge . type !== 'Task' ) {
405+ winners = winners . filter ( w => ! w . type || w . type === 'final' ) ;
406+ }
405407
406408 let hasFirstPlacement = false ;
407409 if ( ! _ . isEmpty ( winners ) ) {
You can’t perform that action at this time.
0 commit comments