projects
/
lemmy-ui.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ca2460
)
clean code
author
Ivo Barros
<devL3v3L@gmail.com>
Sat, 17 Jun 2023 23:51:32 +0000
(
00:51
+0100)
committer
Ivo Barros
<devL3v3L@gmail.com>
Sat, 17 Jun 2023 23:51:32 +0000
(
00:51
+0100)
src/shared/utils.ts
patch
|
blob
|
history
diff --git
a/src/shared/utils.ts
b/src/shared/utils.ts
index abb306290c637768b1c1a3ecba42a3e95f95f376..86a32d166f5aa2fa5add9c807d2a4a3e957ac783 100644
(file)
--- 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" ||