mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-08 01:45:28 +00:00
fix: weird typing errors that cropped up
This commit is contained in:
@@ -38,7 +38,9 @@ dayjs.extend(relativeTime);
|
||||
export function Sessions() {
|
||||
const client = useClient();
|
||||
const deviceId =
|
||||
typeof client.session === "object" ? client.session._id : undefined;
|
||||
typeof client.session === "object"
|
||||
? (client.session as unknown as { _id: string })._id
|
||||
: undefined;
|
||||
|
||||
const [sessions, setSessions] = useState<API.SessionInfo[] | undefined>(
|
||||
undefined,
|
||||
|
||||
Reference in New Issue
Block a user