Skip to content

Commit

Permalink
fix: active link bug for welcome page
Browse files Browse the repository at this point in the history
  • Loading branch information
od41 committed Dec 20, 2023
1 parent 2a2453a commit 8505430
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/nextjs/src/app/(with wallet)/_components/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ export function Sidebar({ className }: SidebarProps) {

if (pathname.endsWith(HOME_PAGE) && title === "Home") {
return pathname.endsWith(path);
}
else if (path != HOME_PAGE && title != 'Home'){
} else if (pathname.endsWith('/') && title === "Welcome") {
return true;
} else if (path != HOME_PAGE && title != 'Home' && path != '/' && title != 'Welcome'){
return path.includes(typeof(substring)==="function" ? substring(uid!) : substring)
}
return false;
Expand Down

0 comments on commit 8505430

Please sign in to comment.