This commit is contained in:
focp212@naver.com
2025-10-30 11:06:57 +09:00
parent 506f6c0acf
commit acee57f819
5 changed files with 27 additions and 14 deletions

View File

@@ -36,7 +36,7 @@ import { useStore } from '@/shared/model/store';
export const InfoWrap = () => {
const { t } = useTranslation();
const midOptions = useStore.getState().UserStore.selectOptionsMidsWithoutGids;
const midOptions = useStore.getState().UserStore.selectOptionsMids;
const userMid = useStore.getState().UserStore.mid;
let midItem = midOptions.filter((value, index) => {
return value.value === userMid;
@@ -209,7 +209,7 @@ export const InfoWrap = () => {
callPaymentIntallmentDetail(cardCompany);
};
useEffect(() => {
if(mid){
if(!!mid){
callPaymentCard();
callPaymentNonCard();
callPaymentIntallment();

View File

@@ -9,8 +9,11 @@ export const NotificationDataWrap = () => {
const { t } = useTranslation();
const midOptions = useStore.getState().UserStore.selectOptionsMids;
const userMid = useStore.getState().UserStore.mid;
let midItem = midOptions.filter((value, index) => {
return value.value === userMid;
});
const [mid, setMid] = useState<string>(userMid);
const [mid, setMid] = useState<string>((midItem.length > 0)? userMid: '');
const [merchantInfo, setMerchantInfo] = useState<Record<string, any>>();
const [creditCard, setCreditCard] = useState<Record<string, any>>();
const [accountTransfer, setAccountTransfer] = useState<Record<string, any>>();
@@ -39,7 +42,9 @@ export const NotificationDataWrap = () => {
});
};
useEffect(() => {
callPaymentNotificationData();
if(!!mid){
callPaymentNotificationData();
}
}, [mid]);
return (