File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -76,17 +76,19 @@ const UserRow = ({ user }: { user: User }) => {
7676 < a
7777 key = { user . id }
7878 className = "w-full flex"
79- href = { `https://www.worldcubeassociation.org/persons/${ user . wca_id } ` }
79+ href = { user . wca_id && `https://www.worldcubeassociation.org/persons/${ user . wca_id } ` }
8080 target = "_blank"
8181 rel = "noreferrer" >
8282 < img className = "w-16 h-16 rounded-l" src = { user . avatar ?. thumb_url } alt = { user . name } />
8383 < div className = "flex flex-1 flex-col px-2" >
8484 < span className = "text-xl" > { user . name } </ span >
8585 < span className = "text-xs" > { user . wca_id } </ span >
8686 </ div >
87- < div className = "p-2 flex items-center" >
88- < i className = "m-0 fa fa-solid fa-arrow-up-right-from-square" />
89- </ div >
87+ { user . wca_id && (
88+ < div className = "p-2 flex items-center" >
89+ < i className = "m-0 fa fa-solid fa-arrow-up-right-from-square" />
90+ </ div >
91+ ) }
9092 </ a >
9193 </ li >
9294 ) ;
You can’t perform that action at this time.
0 commit comments