mid 셋팅및 코드 정리
This commit is contained in:
@@ -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>
|
||||
))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user