make error optional in ClientState
This commit is contained in:
parent
3727bfb67f
commit
4f36d149d7
1 changed files with 1 additions and 1 deletions
|
@ -59,10 +59,10 @@ interface ClientState {
|
||||||
isPasswordlessUser: boolean;
|
isPasswordlessUser: boolean;
|
||||||
client: MatrixClient;
|
client: MatrixClient;
|
||||||
userName: string;
|
userName: string;
|
||||||
error: Error;
|
|
||||||
changePassword: (password: string) => Promise<void>;
|
changePassword: (password: string) => Promise<void>;
|
||||||
logout: () => void;
|
logout: () => void;
|
||||||
setClient: (client: MatrixClient, session: Session) => void;
|
setClient: (client: MatrixClient, session: Session) => void;
|
||||||
|
error?: Error;
|
||||||
}
|
}
|
||||||
|
|
||||||
const ClientContext = createContext<ClientState>(null);
|
const ClientContext = createContext<ClientState>(null);
|
||||||
|
|
Loading…
Reference in a new issue