diff --git a/src/components/views/dialogs/SlidingSyncOptionsDialog.tsx b/src/components/views/dialogs/SlidingSyncOptionsDialog.tsx index 5419f749e6..958c8d0876 100644 --- a/src/components/views/dialogs/SlidingSyncOptionsDialog.tsx +++ b/src/components/views/dialogs/SlidingSyncOptionsDialog.tsx @@ -86,8 +86,9 @@ export const SlidingSyncOptionsDialog: React.FC<{ onFinished(enabled: boolean): const validProxy = withValidation({ async deriveData({ value }): Promise<{ error?: unknown }> { + if (!value) return {}; try { - await proxyHealthCheck(value!, MatrixClientPeg.safeGet().baseUrl); + await proxyHealthCheck(value, MatrixClientPeg.safeGet().baseUrl); return {}; } catch (error) { return { error };