File tree 4 files changed +21
-7
lines changed
components/challenge-listing/Listing/Bucket
containers/challenge-detail
4 files changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -343,7 +343,6 @@ workflows:
343
343
branches :
344
344
only :
345
345
- develop
346
- - docusign-cors
347
346
# This is alternate dev env for parallel testing
348
347
- " build-test " :
349
348
context : org-global
@@ -357,14 +356,14 @@ workflows:
357
356
filters :
358
357
branches :
359
358
only :
360
- - ref-email-tracking
359
+ - free
361
360
# This is beta env for production soft releases
362
361
- " build-prod-beta " :
363
362
context : org-global
364
363
filters :
365
364
branches :
366
365
only :
367
- - slash-home-hotfix
366
+ - free
368
367
# This is stage env for production QA releases
369
368
- " build-prod-staging " :
370
369
context : org-global
Original file line number Diff line number Diff line change 150
150
"supertest" : " ^3.1.0" ,
151
151
"tc-core-library-js" : " github:appirio-tech/tc-core-library-js#v2.6.3" ,
152
152
"tc-ui" : " ^1.0.12" ,
153
- "topcoder-react-lib" : " 1.2.0 " ,
153
+ "topcoder-react-lib" : " 1.2.1 " ,
154
154
"topcoder-react-ui-kit" : " 2.0.1" ,
155
155
"topcoder-react-utils" : " 0.7.8" ,
156
156
"turndown" : " ^4.0.2" ,
Original file line number Diff line number Diff line change @@ -77,6 +77,19 @@ export default function Bucket({
77
77
} else {
78
78
sortedChallenges = _ . clone ( challenges ) ;
79
79
}
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
+
80
93
// sortedChallenges.sort(Sort[activeSort].func);
81
94
82
95
// const bucketQuery = qs.stringify({
@@ -118,14 +131,14 @@ export default function Bucket({
118
131
// );
119
132
// }
120
133
121
- if ( ! loading && sortedChallenges . length === 0 ) {
134
+ if ( ! loading && filteredChallenges . length === 0 ) {
122
135
return (
123
136
< div styleName = "no-results" >
124
137
{ ( filterState . recommended && activeBucket === 'openForRegistration' ) ? null : `${ NO_LIVE_CHALLENGES_CONFIG [ activeBucket ] } ` }
125
138
</ div >
126
139
) ;
127
140
}
128
- const cards = sortedChallenges . map ( challenge => (
141
+ const cards = filteredChallenges . map ( challenge => (
129
142
< ChallengeCard
130
143
challenge = { challenge }
131
144
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 {
401
401
}
402
402
403
403
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
+ }
405
407
406
408
let hasFirstPlacement = false ;
407
409
if ( ! _ . isEmpty ( winners ) ) {
You can’t perform that action at this time.
0 commit comments