Skip to content

Commit

Permalink
Updated comment to accurately reflect array indexing.
Browse files Browse the repository at this point in the history
  • Loading branch information
sethdivyansh committed Nov 2, 2024
1 parent f345556 commit c8ef93d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/LeftDrawerOrg/LeftDrawerOrg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c8ef93d

Please sign in to comment.