fix: TermsOfService 약관동의여부 확인로직 추가

This commit is contained in:
djaco
2025-06-15 23:37:54 +09:00
parent e4cca68b1e
commit 8b12637f1f
2 changed files with 6 additions and 1 deletions

View File

@@ -53,7 +53,7 @@ const OptionalTermsConfirm = ({ open }) => {
// 동의하지 않을 항목들 (빈 배열) // 동의하지 않을 항목들 (빈 배열)
const notTermsList = []; const notTermsList = [];
console.log('약관 동의 API 호출 파라미터:', { termsList, notTermsList }); console.log('OptionalTermsConfirm -약관 동의 API 호출 파라미터:', { termsList, notTermsList });
const callback = (response) => { const callback = (response) => {
if (response.retCode === "000" || response.retCode === 0) { if (response.retCode === "000" || response.retCode === 0) {
@@ -63,6 +63,7 @@ const OptionalTermsConfirm = ({ open }) => {
} }
}; };
console.log('OptionalTermsConfirm - 약관 동의 API 호출 payload:', { termsList, notTermsList });
dispatch(setMyPageTermsAgree({ termsList, notTermsList }, callback)); dispatch(setMyPageTermsAgree({ termsList, notTermsList }, callback));
dispatch(setHidePopup()); dispatch(setHidePopup());
} else { } else {

View File

@@ -64,6 +64,10 @@ export default function TermsOfService({ title, cbScrollTo }) {
const focusJob = useRef(null); const focusJob = useRef(null);
useEffect(() => {
dispatch(getHomeTerms({ trmsTpCdList: ["MST00401", "MST00402", "MST00405"] }));
}, [dispatch]);
useEffect(() => { useEffect(() => {
const newTabList = []; const newTabList = [];
const tempList = []; const tempList = [];