File tree Expand file tree Collapse file tree 1 file changed +20
-16
lines changed Expand file tree Collapse file tree 1 file changed +20
-16
lines changed Original file line number Diff line number Diff line change @@ -111,22 +111,26 @@ const ContributionsList = memo(({ categories, libraries }) => {
111
111
< a href = { node . url } target = "_blank" rel = "noreferrer" >
112
112
< h3 > { node . name } </ h3 >
113
113
</ a >
114
- { node . authors . map ( ( author , key ) => (
115
- < a
116
- key = { key + 'a' }
117
- href = { author . slice (
118
- author . indexOf ( '(' ) + 1 ,
119
- author . indexOf ( ')' )
120
- ) }
121
- target = "_blank"
122
- rel = "noreferrer"
123
- className = { css . contributionAuthor } >
124
- { author . slice (
125
- author . indexOf ( '[' ) + 1 ,
126
- author . indexOf ( ']' )
127
- ) }
128
- </ a >
129
- ) ) }
114
+ { node . authors . map ( ( author , key ) => {
115
+ return author . indexOf ( '(' ) !== - 1 ? (
116
+ < a
117
+ key = { key + 'a' }
118
+ href = { author . slice (
119
+ author . indexOf ( '(' ) + 1 ,
120
+ author . indexOf ( ')' )
121
+ ) }
122
+ target = "_blank"
123
+ rel = "noreferrer"
124
+ className = { css . contributionAuthor } >
125
+ { author . slice (
126
+ author . indexOf ( '[' ) + 1 ,
127
+ author . indexOf ( ']' )
128
+ ) }
129
+ </ a >
130
+ ) : (
131
+ < span key = { key + 'span' } > { author } </ span >
132
+ ) ;
133
+ } ) }
130
134
</ div >
131
135
< p
132
136
className = { classnames ( grid . col , css . itemDescription ) }
You can’t perform that action at this time.
0 commit comments