From 92561cf04f631cb65fcddf80838252d9b34b8e4a Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Fri, 13 Sep 2019 15:02:12 +0300 Subject: [PATCH] - client: fix url change handler on filters modal --- client/src/components/Filters/Modal.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client/src/components/Filters/Modal.js b/client/src/components/Filters/Modal.js index c4b89437..58a41f5e 100644 --- a/client/src/components/Filters/Modal.js +++ b/client/src/components/Filters/Modal.js @@ -21,11 +21,7 @@ class Modal extends Component { handleUrlChange = async (e) => { const { value: url } = e.currentTarget; - if (this.isUrlValid(url)) { - this.setState(...this.state, { url, isUrlValid: true }); - } else { - this.setState(...this.state, { url, isUrlValid: false }); - } + this.setState(...this.state, { url, isUrlValid: this.isUrlValid(url) }); }; handleNameChange = (e) => {