mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-22 07:00:58 -05:00
fix: weird typing errors that cropped up
This commit is contained in:
parent
9f9902ffb1
commit
4d58ff06f3
2 changed files with 4 additions and 2 deletions
|
@ -252,7 +252,7 @@ class ClientController {
|
||||||
// Start client lifecycle
|
// Start client lifecycle
|
||||||
this.addSession(
|
this.addSession(
|
||||||
{
|
{
|
||||||
session,
|
session: session as never,
|
||||||
},
|
},
|
||||||
"new",
|
"new",
|
||||||
);
|
);
|
||||||
|
|
|
@ -38,7 +38,9 @@ dayjs.extend(relativeTime);
|
||||||
export function Sessions() {
|
export function Sessions() {
|
||||||
const client = useClient();
|
const client = useClient();
|
||||||
const deviceId =
|
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>(
|
const [sessions, setSessions] = useState<API.SessionInfo[] | undefined>(
|
||||||
undefined,
|
undefined,
|
||||||
|
|
Loading…
Reference in a new issue