From 19cfd84e7d42075e6479e77da873107c435a1f19 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Sun, 16 Nov 2025 19:30:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=94=99=E8=AF=AF=E7=9A=84=20openUserIn?= =?UTF-8?q?foDialog=20=E5=8F=82=E6=95=B0=E7=B1=BB=E5=9E=8B=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/ui/App.tsx | 2 +- client/ui/AppMobile.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/ui/App.tsx b/client/ui/App.tsx index 95798b9..7813ffc 100644 --- a/client/ui/App.tsx +++ b/client/ui/App.tsx @@ -112,7 +112,7 @@ export default function App() { } async function openUserInfoDialog(user: User | string) { - if (user instanceof User) { + if (typeof user == 'object') { setUserInfo(user) } else { setUserInfo(await DataCaches.getUserProfile(user)) diff --git a/client/ui/AppMobile.tsx b/client/ui/AppMobile.tsx index bbd6aab..e51fba3 100644 --- a/client/ui/AppMobile.tsx +++ b/client/ui/AppMobile.tsx @@ -112,7 +112,7 @@ export default function AppMobile() { } async function openUserInfoDialog(user: User | string) { - if (user instanceof User) { + if (typeof user == 'object') { setUserInfo(user) } else { setUserInfo(await DataCaches.getUserProfile(user))