fix: TermsOfService 약관동의여부 확인로직 추가
This commit is contained in:
@@ -53,7 +53,7 @@ const OptionalTermsConfirm = ({ open }) => {
|
||||
// 동의하지 않을 항목들 (빈 배열)
|
||||
const notTermsList = [];
|
||||
|
||||
console.log('약관 동의 API 호출 파라미터:', { termsList, notTermsList });
|
||||
console.log('OptionalTermsConfirm -약관 동의 API 호출 파라미터:', { termsList, notTermsList });
|
||||
|
||||
const callback = (response) => {
|
||||
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(setHidePopup());
|
||||
} else {
|
||||
|
||||
@@ -64,6 +64,10 @@ export default function TermsOfService({ title, cbScrollTo }) {
|
||||
|
||||
const focusJob = useRef(null);
|
||||
|
||||
useEffect(() => {
|
||||
dispatch(getHomeTerms({ trmsTpCdList: ["MST00401", "MST00402", "MST00405"] }));
|
||||
}, [dispatch]);
|
||||
|
||||
useEffect(() => {
|
||||
const newTabList = [];
|
||||
const tempList = [];
|
||||
|
||||
Reference in New Issue
Block a user