diff --git a/src/ClientContext.jsx b/src/ClientContext.jsx index 7023aa4..2034629 100644 --- a/src/ClientContext.jsx +++ b/src/ClientContext.jsx @@ -23,7 +23,7 @@ import React, { useContext, } from "react"; import { useHistory } from "react-router-dom"; -import { initClient } from "./matrix-utils"; +import { initClient, defaultHomeserver } from "./matrix-utils"; const ClientContext = createContext(); @@ -78,6 +78,7 @@ export function ClientProvider({ children }) { return { client: undefined }; } catch (err) { + console.error(err); localStorage.removeItem("matrix-auth-store"); throw err; }