From 9b1ae228e95685087ded87e617eac20bfb83b0c1 Mon Sep 17 00:00:00 2001 From: Nes-si Date: Mon, 29 Oct 2018 16:22:44 +0300 Subject: [PATCH] =?UTF-8?q?Settings=20=E2=80=94=20webhook=20check=20fixed.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/mainArea/settings/Settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/mainArea/settings/Settings.js b/src/components/mainArea/settings/Settings.js index 86cd620b..222e9dde 100644 --- a/src/components/mainArea/settings/Settings.js +++ b/src/components/mainArea/settings/Settings.js @@ -105,7 +105,7 @@ export default class Settings extends Component { return false; } - if (!checkURL(this.state.webhook)) { + if (this.state.webhook && !checkURL(this.state.webhook)) { this.setState({error: ERROR_WEBHOOK_SYNTAX}); return false; }