Remove karma count from search results(fixes #853)

This commit is contained in:
Justin Hernandez 2020-07-11 15:57:13 -05:00
parent 4b30b6d764
commit f03161b7f9
2 changed files with 7 additions and 9 deletions

View file

@ -282,9 +282,6 @@ export class Search extends Component<any, SearchState> {
}}
/>
</span>
<span>{` - ${
(i.data as UserView).comment_score
} comment karma`}</span>
</div>
)}
</div>
@ -359,12 +356,13 @@ export class Search extends Component<any, SearchState> {
<div class="row">
<div class="col-12">
<span>
<Link
className="text-info"
to={`/u/${user.name}`}
>{`/u/${user.name}`}</Link>
<UserListing
user={{
name: user.name,
avatar: user.avatar,
}}
/>
</span>
<span>{` - ${user.comment_score} comment karma`}</span>
</div>
</div>
))}

View file

@ -52,7 +52,7 @@ export class UserListing extends Component<UserListingProps, any> {
class="rounded-circle mr-2"
/>
)}
<span>{name_}</span>
<span>{`/u/${name_}`}</span>
</Link>
{isCakeDay(user.published) && <CakeDay creatorName={name_} />}