Skip to content

Commit

Permalink
πŸ›fix: ν—€λ”μ—μ„œ λ„ˆκ°€μ†Œκ°œμ„œ 탭이 μƒ‰μΉ λ˜μ§€ μ•ŠλŠ” 였λ₯˜ μˆ˜μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
SeojinSeojin committed Jan 19, 2022
1 parent d53b641 commit 1a94a88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/presentation/components/common/HomeHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ function HomeHeader() {

useEffect(() => {
if (!location) return;
setCurrentTab(location.pathname.split('/')[2]);
const selectedTab = location.pathname.split('/')[2];
setCurrentTab(selectedTab ?? 'neoga');
}, [location]);

/*
Expand Down

0 comments on commit 1a94a88

Please sign in to comment.