forked from abner/for-legacy-web
Make Typescript happy, testing CI build.
Adjust language names.
This commit is contained in:
@@ -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[]>([]);
|
||||
|
||||
Reference in New Issue
Block a user