Skip to content

Commit

Permalink
Fixed Giveconomy dictation
Browse files Browse the repository at this point in the history
  • Loading branch information
alireza-sharifpour committed Aug 10, 2023
1 parent 9ea735c commit e2f630c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useNavigationInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { projectsItems } from '@/components/menu/ProjectsItems';
import { giveconomyItems } from '@/components/menu/GIVeconomyItems';
import { communityItems } from '@/components/menu/CommunityItems';

type Section = 'Community' | 'Projects' | 'GIVEconomy' | 'Home';
type Section = 'Community' | 'Projects' | 'GIVeconomy' | 'Home';

export const useNavigationInfo = () => {
const router = useRouter();
Expand All @@ -26,7 +26,7 @@ export const useNavigationInfo = () => {
// Handle dynamic route
return 'Projects';
} else if (giveconomyRoutes.some(route => path.startsWith(route))) {
return 'GIVEconomy';
return 'GIVeconomy';
}
return 'Home'; // default
};
Expand Down

0 comments on commit e2f630c

Please sign in to comment.