Skip to content

Commit 45c8530

Browse files
authored
Merge pull request #5368 from nursoltan-s/recommender-bug-fixes
additional bug fixes
2 parents f778d83 + dc03410 commit 45c8530

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/shared/components/challenge-detail/Header/ChallengeTags.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ export default function ChallengeTags(props) {
6565

6666

6767
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;
7070

7171
const tags = technPlatforms.filter(tag => !matchSkills.includes(tag));
7272

@@ -97,7 +97,7 @@ export default function ChallengeTags(props) {
9797
))
9898
}
9999
{
100-
matchScore && (
100+
matchScore > 0 && (
101101
<span styleName="matchScoreWrap">
102102
<MatchScore score={calculateScore(matchScore)} />
103103
</span>

src/shared/components/challenge-listing/style.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ $challenge-radius-4: $corner-radius * 2;
118118
display: inline-block;
119119
border-radius: 3px;
120120
padding: 5px 5px 10px 5px;
121+
max-width: 400px;
121122
}
122123

123124
.additionalTagWrapper::after {

0 commit comments

Comments
 (0)