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;
|
||||
client: MatrixClient;
|
||||
userName: string;
|
||||
error: Error;
|
||||
changePassword: (password: string) => Promise<void>;
|
||||
logout: () => void;
|
||||
setClient: (client: MatrixClient, session: Session) => void;
|
||||
error?: Error;
|
||||
}
|
||||
|
||||
const ClientContext = createContext<ClientState>(null);
|
||||
|
|
Loading…
Reference in a new issue