From: Ivo Barros Date: Sat, 17 Jun 2023 23:51:32 +0000 (+0100) Subject: clean code X-Git-Url: http://these/git/%22%7Burl%7D/%22https:/image.com/%7B%60%24%7BghostArchiveUrl%7D/%7Brss%7D?a=commitdiff_plain;h=5e9a414dfcbde436d803953871bbe3ada464d90a;p=lemmy-ui.git clean code --- diff --git a/src/shared/utils.ts b/src/shared/utils.ts index abb3062..86a32d1 100644 --- a/src/shared/utils.ts +++ b/src/shared/utils.ts @@ -986,9 +986,9 @@ export function commentsToFlatNodes(comments: CommentView[]): CommentNodeI[] { export function convertCommentSortType(sort: SortType): CommentSortType { if ( sort == "TopAll" || - sort == "TopHour" || - sort == "TopSixHour" || - sort == "TopTwelveHour" || + sort == "TopHour" || + sort == "TopSixHour" || + sort == "TopTwelveHour" || sort == "TopDay" || sort == "TopWeek" || sort == "TopMonth" ||