[국가코드 체크] 에러 코드로 변경

This commit is contained in:
sungmin.in
2024-07-10 19:28:28 +09:00
parent 1bbc1d9844
commit 8aba7116f0
2 changed files with 41 additions and 32 deletions

View File

@@ -152,16 +152,23 @@ export const TAxios = (
}
// 602 요청 국가 불일치
if (res?.data?.retCode === 602) {
dispatch(setShowPopup(ACTIVE_POPUP.changeCountyPopup));
Spotlight.focus("tPopupBtn1");
dispatch(
setShowPopup(ACTIVE_POPUP.changeCountyPopup, {
data: res.data.retCode,
})
);
return;
}
// 603 서비스 국가 아님
if (res?.data?.retCode === 603) {
dispatch(setShowPopup(ACTIVE_POPUP.unSupportedCountryPopup));
Spotlight.focus("tPopupBtn1");
dispatch(
setShowPopup(ACTIVE_POPUP.unSupportedCountryPopup, {
data: res.data.retCode,
})
);
return;
}
if (res?.data?.retCode === 604) {
//todo "NotServiceLanguage"
return;