Skip to content

Commit

Permalink
๐Ÿ›  fix : ์„œ๋ธŒํŽ˜์ด์ง€ ๋’ค๋กœ๊ฐ€๊ธฐ ์ด์Šˆ
Browse files Browse the repository at this point in the history
  • Loading branch information
seondal committed Apr 17, 2024
1 parent e3980ad commit e42954d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Header/HeaderButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ import { ICON } from '@/constants/icon';

export function CloseButton() {
const router = useRouter();

return (
<IconButton
icon={ICON.close.black}
onClick={() => {
if (document.referrer) router.back();
if (window.history.length > 1) router.back();
else router.replace('/feed');
}}
/>
Expand Down

0 comments on commit e42954d

Please sign in to comment.