From 4f36d149d73c03afd5671dd5b323bb8c2deeece0 Mon Sep 17 00:00:00 2001 From: Timo K Date: Thu, 28 Jul 2022 00:22:48 +0200 Subject: [PATCH] make error optional in ClientState --- src/ClientContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ClientContext.tsx b/src/ClientContext.tsx index ca2a659..5e0c3c1 100644 --- a/src/ClientContext.tsx +++ b/src/ClientContext.tsx @@ -59,10 +59,10 @@ interface ClientState { isPasswordlessUser: boolean; client: MatrixClient; userName: string; - error: Error; changePassword: (password: string) => Promise; logout: () => void; setClient: (client: MatrixClient, session: Session) => void; + error?: Error; } const ClientContext = createContext(null);