From c9c89506f1146fdb16323e4b430a436506f2f193 Mon Sep 17 00:00:00 2001 From: Andy Balaam Date: Thu, 8 Dec 2022 13:53:02 +0000 Subject: [PATCH] Fix TypeScript warnings in MatrixChat --- src/components/structures/MatrixChat.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/structures/MatrixChat.tsx b/src/components/structures/MatrixChat.tsx index 451b95da976a..fe20b63a1455 100644 --- a/src/components/structures/MatrixChat.tsx +++ b/src/components/structures/MatrixChat.tsx @@ -1759,7 +1759,8 @@ export default class MatrixChat extends React.PureComponent { } else if (screen === "start_sso" || screen === "start_cas") { let cli = MatrixClientPeg.get(); if (!cli) { - const { hsUrl, isUrl } = this.props.serverConfig; + const hsUrl = this.props.serverConfig?.hsUrl || ""; + const isUrl = this.props.serverConfig?.isUrl; cli = createClient({ baseUrl: hsUrl, idBaseUrl: isUrl,