diff --git a/src/pages/profile/ProfilePage.jsx b/src/pages/profile/ProfilePage.jsx
index 7771d51e..24e8725c 100644
--- a/src/pages/profile/ProfilePage.jsx
+++ b/src/pages/profile/ProfilePage.jsx
@@ -46,6 +46,10 @@ const ProfilePage = () => {
setHoveredSignature(null);
};
+ if (isError) {
+ return ;
+ }
+
// 기존 유저 중 탈퇴한 회원일 때
if (quitUser) {
return ;
diff --git a/src/pages/quitUserPage/QuitUserPage.jsx b/src/pages/quitUserPage/QuitUserPage.jsx
index 2febae78..d611cf88 100644
--- a/src/pages/quitUserPage/QuitUserPage.jsx
+++ b/src/pages/quitUserPage/QuitUserPage.jsx
@@ -5,14 +5,24 @@ import RedirectIcon from '/images/RedirectIcon.png';
const QuitUserPage = ({ type }) => {
const navigate = useNavigate();
+ let message;
+ switch (type) {
+ case 'quit':
+ message = '이미 탈퇴한 회원입니다!';
+ break;
+ case 'non-user':
+ message = '존재하지 않는 회원입니다!';
+ break;
+ case 'not-login':
+ message = '로그인 후 서비스를 이용해주세요!';
+ break;
+ default:
+ message = '';
+ }
return (
- {type === 'quit' ? (
- 이미 탈퇴한 회원입니다!
- ) : (
- 존재하지 않는 회원입니다!
- )}
+ {message}
navigate('/')}>홈 화면으로 돌아가기
);
diff --git a/src/pages/signature/post/SignaturePost.jsx b/src/pages/signature/post/SignaturePost.jsx
index 4850c734..d0c7d913 100644
--- a/src/pages/signature/post/SignaturePost.jsx
+++ b/src/pages/signature/post/SignaturePost.jsx
@@ -14,6 +14,7 @@ import LikerFindModal from '@/components/modal/likerFindModal/LikerFindModal';
import useLikersModal from '@/hooks/modal/useLikersModal';
import { useGetMyProfile } from '@/hooks/profile/queries/useGetMyProfile';
import { useGetSignaturePost } from '@/hooks/signature/queries/useGetSignaturePost';
+import { QuitUserPage } from '@/pages';
import { useMutation, useQueryClient } from '@tanstack/react-query';
import { GrFormNext, GrFormPrevious } from 'react-icons/gr';
@@ -93,7 +94,7 @@ const SignaturePostPage = () => {
};
if (isError) {
- return
Error 발생...
;
+ return ;
}
return (