Skip to content

Commit

Permalink
๐Ÿ› Fix bug
Browse files Browse the repository at this point in the history
- ๊ธ€์“ฐ๊ธฐ, ์šฐ์ฃผ ์ปค์Šคํ…€ ๋“ฑ์—์„œ ์ƒˆ๋กœ๊ณ ์นจ์‹œ ์ƒ๋‹จ๋ฐ”, ํ•˜๋‹จ๋ฐ”๊ฐ€ ์ƒ๊ธฐ๋Š” ๋ฌธ์ œ ํ•ด๊ฒฐ
  • Loading branch information
bananaba committed Dec 13, 2023
1 parent fb2ea47 commit 785a480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/src/pages/Home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function Home() {
useEffect(() => {
const path = location.pathname.split('/');
if (path[1] === 'home' && path.length <= 2) setView('MAIN');
else if (path[1] === 'home' && path.length === 3) setView('MAIN');
else if (path[1] === 'home' && path.length === 3 && postId) setView('MAIN');
else if (path[1] === 'guest' && path.length <= 4) setView('MAIN');
else if (path[1] === 'search' && path.length <= 4) setView('MAIN');
}, [location]);
Expand Down

0 comments on commit 785a480

Please sign in to comment.