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