diff --git a/src/components/LeftDrawerOrg/LeftDrawerOrg.tsx b/src/components/LeftDrawerOrg/LeftDrawerOrg.tsx index 53cf635f04..a71c44afba 100644 --- a/src/components/LeftDrawerOrg/LeftDrawerOrg.tsx +++ b/src/components/LeftDrawerOrg/LeftDrawerOrg.tsx @@ -45,7 +45,7 @@ const leftDrawerOrg = ({ const getIdFromPath = (pathname: string): string => { if (!pathname) return ''; const segments = pathname.split('/'); - // Index 2 represents the ID in paths like /member/{userId} + // Index 2 (third segment) represents the ID in paths like /member/{userId} return segments.length > 2 ? segments[2] : ''; }; const [isProfilePage, setIsProfilePage] = useState(false);