fix: TermsOfService 약관동의여부 확인로직 추가
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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 = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user