diff --git a/src/app/account/_components/LogoutModal.tsx b/src/app/account/_components/LogoutModal.tsx index 003eebff..3891d636 100644 --- a/src/app/account/_components/LogoutModal.tsx +++ b/src/app/account/_components/LogoutModal.tsx @@ -37,7 +37,7 @@ export default function LogoutModal({ handleSetOff }: LogOutModalProps) { } } catch (error) { if (error instanceof AxiosError) { - console.error(error.message); + toasting({ type: 'error', txt: toastMessage.ko.loggedOutError }); } } }; diff --git a/src/lib/constants/toastMessage.ts b/src/lib/constants/toastMessage.ts index 8a6b5641..95035334 100644 --- a/src/lib/constants/toastMessage.ts +++ b/src/lib/constants/toastMessage.ts @@ -4,6 +4,7 @@ const toastMessage = { ko: { requiredLogin: '로그인이 필요해요.', loggedOut: '로그아웃 되었어요.', + loggedOutError: '로그아웃에 실패했어요. 다시 시도해주세요.🥲', limitFollow: `최대 ${MAX_FOLLOWING.toLocaleString('ko-KR')}명까지 팔로우할 수 있어요.`, uploadImageError: '이미지를 업로드에 실패했어요. 다시 업로드해주세요.🥲', createListError: '리스트 생성에 실패했어요. 다시 시도해주세요.🥲', @@ -14,6 +15,7 @@ const toastMessage = { en: { requiredLogin: 'Login is required.', loggedOut: 'Logged out successfully.', + loggedOutError: 'Failed to log out. Please try again.🥲', limitFollow: `Following exceeds the limit of ${MAX_FOLLOWING.toLocaleString('en-US')}.`, uploadImageError: 'Failed to upload the image. Please try again.🥲', createListError: 'Failed to create the list. Please try again.🥲',