mid 변경

This commit is contained in:
focp212@naver.com
2025-10-30 10:57:52 +09:00
parent e4e73dec72
commit 506f6c0acf
7 changed files with 56 additions and 14 deletions

View File

@@ -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);