mid 셋팅및 코드 정리

This commit is contained in:
focp212@naver.com
2025-10-10 15:26:04 +09:00
parent 306629be53
commit ced334f90f
41 changed files with 692 additions and 582 deletions

View File

@@ -6,7 +6,7 @@ import { NotifyRow } from './section/notify-row';
export const NotificationDataWrap = () => {
const midOptions = useStore.getState().UserStore.selectOptionsMids;
const mid = useStore.getState().UserStore.mid;
const userMid = useStore.getState().UserStore.mid;
const [merchantInfo, setMerchantInfo] = useState<Record<string, any>>();
const [creditCard, setCreditCard] = useState<Record<string, any>>();
@@ -39,8 +39,8 @@ export const NotificationDataWrap = () => {
callPaymentNotificationData(value);
};
useEffect(() => {
if(!!mid){
callPaymentNotificationData(mid);
if(!!userMid){
callPaymentNotificationData(userMid);
}
}, []);
@@ -56,6 +56,7 @@ export const NotificationDataWrap = () => {
<option
key={ value.value }
value={ value.value }
selected={ (userMid === value.value)? true: false }
>{ value.name }</option>
))
}