From fb65348ba3dc3907871e8ac0a6ba8b5854a9a57f Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Thu, 12 Mar 2026 23:20:29 -0700 Subject: [PATCH] Fix this logic broken in 1.6.0 --- src/componets/Sidebar.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/componets/Sidebar.tsx b/src/componets/Sidebar.tsx index 6c68d59..de4fa31 100644 --- a/src/componets/Sidebar.tsx +++ b/src/componets/Sidebar.tsx @@ -153,11 +153,11 @@ export default function Sidebar () { key={`${i.id}-${key}`} draggable={false} className={`link ${ - (pathname === '/game' && + ((pathname === '/game' && Number(params.get('id') || 0) == i.id) || - (i.id == 1 && - pathname === '/game/berrydash/leaderboards' && - category == Number(key)) + (i.id == 1 && + pathname === '/game/berrydash/leaderboards')) && + category == Number(key) ? 'active' : '' } ml-auto w-47.5 ${