aboutsummaryrefslogtreecommitdiff
path: root/src/routes
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-12-24 11:13:15 -0800
committerFuwn <[email protected]>2024-12-24 11:13:15 -0800
commit2f65c444a5ff402e41c8b2dae431610b02bd2d5f (patch)
tree1709db3a55579e5416cb25d8001759b256bf9ffb /src/routes
parentfix(List): double guard total count setting overlap (diff)
downloaddue.moe-2f65c444a5ff402e41c8b2dae431610b02bd2d5f.tar.xz
due.moe-2f65c444a5ff402e41c8b2dae431610b02bd2d5f.zip
fix(wrapped): li::marker consistent colouring
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/api/badges/+server.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/routes/api/badges/+server.ts b/src/routes/api/badges/+server.ts
index 9d5cb9a0..35ed4512 100644
--- a/src/routes/api/badges/+server.ts
+++ b/src/routes/api/badges/+server.ts
@@ -100,9 +100,9 @@ export const PUT = async ({ cookies, url, request }) => {
allBadges
.filter((badge) => badge.category === (url.searchParams.get('category') || ''))
.filter((badge) => badge.hidden).length >
- allBadges.filter(
- (badge) => badge.category === (url.searchParams.get('category') || '')
- ).length /
+ allBadges.filter(
+ (badge) => badge.category === (url.searchParams.get('category') || '')
+ ).length /
2
? false
: true