diff --git a/apps/web/src/components/layout/header/account.tsx b/apps/web/src/components/layout/header/account.tsx index b6f999c2..54712e51 100644 --- a/apps/web/src/components/layout/header/account.tsx +++ b/apps/web/src/components/layout/header/account.tsx @@ -16,9 +16,17 @@ const AccountHeader = () => { ? '계좌 수정' : '계좌 관리'; + const handleOnClick = () => { + if (pathname.includes('/create') || pathname.includes('/edit')) { + routes.push('/account'); + } else { + routes.push('/profile'); + } + }; + return ( -

{title}

diff --git a/apps/web/src/components/layout/header/address.tsx b/apps/web/src/components/layout/header/address.tsx index 479a906e..239f97f8 100644 --- a/apps/web/src/components/layout/header/address.tsx +++ b/apps/web/src/components/layout/header/address.tsx @@ -16,9 +16,17 @@ const AddressHeader = () => { ? '주소 수정' : '주소 관리'; + const handleOnClick = () => { + if (pathname.includes('/create') || pathname.includes('/edit')) { + routes.push('/address'); + } else { + routes.push('/profile'); + } + }; + return ( -

{title}