Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix TypeScript warnings in MatrixChat
Browse files Browse the repository at this point in the history
  • Loading branch information
andybalaam committed Dec 8, 2022
1 parent 69b139f commit c9c8950
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/structures/MatrixChat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1759,7 +1759,8 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
} 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,
Expand Down

0 comments on commit c9c8950

Please sign in to comment.