Make Typescript happy, testing CI build.

Adjust language names.
This commit is contained in:
Paul
2021-08-30 16:08:22 +01:00
parent 17c09baf89
commit b364fe50f6
7 changed files with 23 additions and 13 deletions

View File

@@ -32,7 +32,8 @@ interface Session {
export function Sessions() {
const client = useContext(AppContext);
const deviceId = client.session?.id;
const deviceId =
typeof client.session === "object" ? client.session.id : undefined;
const [sessions, setSessions] = useState<Session[] | undefined>(undefined);
const [attemptingDelete, setDelete] = useState<string[]>([]);