fix eslint, styling

This commit is contained in:
Tom (plebeius.eth)
2024-06-06 20:44:53 +02:00
parent 3a6d2f16b0
commit 387ae35904
3 changed files with 8 additions and 5 deletions
+2 -2
View File
@@ -10,9 +10,9 @@ const usePopularPosts = (subplebbits: Subplebbit[]) => {
const allPosts: Comment[] = [];
let postsPerSub = 1;
if (subplebbits.length == 2) {
if (subplebbits.length === 2) {
postsPerSub = 4;
} else if (subplebbits.length == 3) {
} else if (subplebbits.length === 3) {
postsPerSub = 3;
} else if (subplebbits.length >= 4 && subplebbits.length < 8) {
postsPerSub = 2;