From f03161b7f94a4f6c39c6ce9c454c80a97dacec4d Mon Sep 17 00:00:00 2001 From: Justin Hernandez Date: Sat, 11 Jul 2020 15:57:13 -0500 Subject: [PATCH] Remove karma count from search results(fixes #853) --- ui/src/components/search.tsx | 14 ++++++-------- ui/src/components/user-listing.tsx | 2 +- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/ui/src/components/search.tsx b/ui/src/components/search.tsx index dd219ba96..c4cb97454 100644 --- a/ui/src/components/search.tsx +++ b/ui/src/components/search.tsx @@ -282,9 +282,6 @@ export class Search extends Component { }} /> - {` - ${ - (i.data as UserView).comment_score - } comment karma`} )} @@ -359,12 +356,13 @@ export class Search extends Component {
- {`/u/${user.name}`} + - {` - ${user.comment_score} comment karma`}
))} diff --git a/ui/src/components/user-listing.tsx b/ui/src/components/user-listing.tsx index 58475d3e9..76196d47d 100644 --- a/ui/src/components/user-listing.tsx +++ b/ui/src/components/user-listing.tsx @@ -52,7 +52,7 @@ export class UserListing extends Component { class="rounded-circle mr-2" /> )} - {name_} + {`/u/${name_}`} {isCakeDay(user.published) && }