- client: fix url change handler on filters modal

This commit is contained in:
Ildar Kamalov 2019-09-13 15:02:12 +03:00
parent 9a28526fa3
commit 92561cf04f
1 changed files with 1 additions and 5 deletions

View File

@ -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) => {