수정
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user