make error optional in ClientState

This commit is contained in:
Timo K 2022-07-28 00:22:48 +02:00
parent 3727bfb67f
commit 4f36d149d7

View File

@ -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);