mid 변경
This commit is contained in:
@@ -15,8 +15,11 @@ export const InfoWrap = () => {
|
||||
const { t } = useTranslation();
|
||||
const midOptionsWithoutGids = useStore.getState().UserStore.selectOptionsMidsWithoutGids;
|
||||
const userMid = useStore.getState().UserStore.mid;
|
||||
let midItem = midOptionsWithoutGids.filter((value, index) => {
|
||||
return value.value === userMid;
|
||||
});
|
||||
|
||||
const [mid, setMid] = useState<string>(userMid);
|
||||
const [mid, setMid] = useState<string>((midItem.length > 0)? userMid: '');
|
||||
const [data, setData] = useState<MerchantMidResponse>();
|
||||
|
||||
const [openChild, setOpenChild] = useState<SectionKeys | null>(null);
|
||||
|
||||
Reference in New Issue
Block a user