File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
components/sections/challenges
pages/communities/[slug]/challenges/[challenge_id] Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -26,15 +26,17 @@ export default function Objectives(): ReactElement {
26
26
< div className = "space-y-5" >
27
27
< ObjectiveList objectives = { challenge ?. objectives } />
28
28
{ expirationDate && < ExpiryDate expiresAt = { expirationDate } /> }
29
- { containsLink . test ( challenge ?. hint as string ) && (
30
- < Hint >
29
+ < Hint >
30
+ { containsLink . test ( challenge ?. hint as string ) ? (
31
31
< span
32
32
dangerouslySetInnerHTML = { {
33
33
__html : challenge ?. hint as string ,
34
34
} }
35
35
/>
36
- </ Hint >
37
- ) }
36
+ ) : (
37
+ < > { challenge ?. hint } </ >
38
+ ) }
39
+ </ Hint >
38
40
</ div >
39
41
</ Section >
40
42
) ;
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ export default function ChallengePage() {
129
129
< Header />
130
130
< Rewards />
131
131
< Objectives />
132
- { challenge ? .isTeamChallenge && < TeamChallenge /> }
132
+ { challenge . isTeamChallenge && < TeamChallenge /> }
133
133
134
134
< Learning courses = { challenge . courses } learningModules = { challenge . learningModules } community = { community } />
135
135
< RatingRubric ratingCriteria = { challenge ?. ratingCriteria } selected = { [ ] } />
You can’t perform that action at this time.
0 commit comments