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