File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,8 @@ export default function ChallengeTags(props) {
65
65
66
66
67
67
const filteredChallenge = _ . find ( openForRegistrationChallenges , { id : challengeId } ) ;
68
- const matchSkills = filteredChallenge ? filteredChallenge . match_skills : [ ] ;
69
- const matchScore = filteredChallenge ? filteredChallenge . jaccard_index : 0 ;
68
+ const matchSkills = filteredChallenge ? filteredChallenge . match_skills || [ ] : [ ] ;
69
+ const matchScore = filteredChallenge ? filteredChallenge . jaccard_index || [ ] : 0 ;
70
70
71
71
const tags = technPlatforms . filter ( tag => ! matchSkills . includes ( tag ) ) ;
72
72
@@ -97,7 +97,7 @@ export default function ChallengeTags(props) {
97
97
) )
98
98
}
99
99
{
100
- matchScore && (
100
+ matchScore > 0 && (
101
101
< span styleName = "matchScoreWrap" >
102
102
< MatchScore score = { calculateScore ( matchScore ) } />
103
103
</ span >
Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ $challenge-radius-4: $corner-radius * 2;
118
118
display : inline-block ;
119
119
border-radius : 3px ;
120
120
padding : 5px 5px 10px 5px ;
121
+ max-width : 400px ;
121
122
}
122
123
123
124
.additionalTagWrapper ::after {
You can’t perform that action at this time.
0 commit comments