From: Ivo Barros <devL3v3L@gmail.com> Date: Sat, 17 Jun 2023 23:51:32 +0000 (+0100) Subject: clean code X-Git-Url: http://these/git/%22https:/nerdica.net/%7BelementUrl%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" ||