diff --git a/src/components/Modal/ReviewModal/EditReviewModal.tsx b/src/components/Modal/ReviewModal/EditReviewModal.tsx
index 3246f7b..f9051d7 100644
--- a/src/components/Modal/ReviewModal/EditReviewModal.tsx
+++ b/src/components/Modal/ReviewModal/EditReviewModal.tsx
@@ -180,11 +180,30 @@ const EditReviewModal = ({
}
};
+ //watch() 값들 추적
const content = watch('content');
- const aromaList = watch('aroma');
+ const aromaList = watch('aroma'); // 한글임
const rating = watch('rating');
+ const lightBold = watch('lightBold');
+ const smoothTannic = watch('smoothTannic');
+ const drySweet = watch('drySweet');
+ const softAcidic = watch('softAcidic');
- const isFormValid = rating > 0 && content.trim().length > 0 && aromaList.length > 0;
+ // 한글 → 영어 변환
+ const selectedAromaEng = (aromaList || []).map((kor) => aromaMap[kor]).filter(Boolean);
+
+ // 변경 여부 비교
+ const isChanged =
+ rating !== reviewData.rating ||
+ lightBold !== reviewData.lightBold ||
+ smoothTannic !== reviewData.smoothTannic ||
+ drySweet !== reviewData.drySweet ||
+ softAcidic !== reviewData.softAcidic ||
+ content !== reviewData.content ||
+ JSON.stringify(selectedAromaEng) !== JSON.stringify(reviewData.aroma);
+
+ //버튼 활성화 조건 개선
+ const isFormValid = rating > 0 && content.trim().length > 0 && aromaList.length > 0 && isChanged;
const renderButton = (
-
+
₩ {wine.price.toLocaleString()}
diff --git a/src/pages/my-profile/index.tsx b/src/pages/my-profile/index.tsx
index 51d4fda..6b28017 100644
--- a/src/pages/my-profile/index.tsx
+++ b/src/pages/my-profile/index.tsx
@@ -2,7 +2,6 @@ import React, { useEffect, useState } from 'react';
import { useRouter } from 'next/router';
-import { LoadingOverlay } from '@/components/common/LoadingOverlay';
import ErrorModal from '@/components/common/Modal/ErrorModal';
import Profile from '@/components/my-profile/Profile';
import { ReviewList } from '@/components/my-profile/ReviewList';
@@ -40,9 +39,6 @@ export default function MyProfile() {
return (
- {/* 로딩 중일 때 전체 오버레이 */}
- {isUserLoading && }
-
{}}