Fix this logic broken in 1.6.0

This commit is contained in:
Lncvrt committed 2026-03-12 23:20:29 -07:00
1 parent f23d1025d2
commit fb65348ba3
1 file changed
+4 -4
+4 -4
View File
@@ -153,11 +153,11 @@ export default function Sidebar () {
key={`${i.id}-${key}`} key={`${i.id}-${key}`}
draggable={false} draggable={false}
className={`link ${ className={`link ${
(pathname === '/game' && ((pathname === '/game' &&
Number(params.get('id') || 0) == i.id) || Number(params.get('id') || 0) == i.id) ||
(i.id == 1 && (i.id == 1 &&
pathname === '/game/berrydash/leaderboards' && pathname === '/game/berrydash/leaderboards')) &&
category == Number(key)) category == Number(key)
? 'active' ? 'active'
: '' : ''
} ml-auto w-47.5 ${ } ml-auto w-47.5 ${