Merge pull request in DNS/adguard-dns from fix/700 to master

* commit '4d217583b099da6a2a2773d0870ab39e36a9b141':
  - client: validate encryption if enabled
This commit is contained in:
Ildar Kamalov 2019-04-11 09:56:49 +03:00
commit 74a0938038
1 changed files with 3 additions and 1 deletions

View File

@ -9,7 +9,9 @@ import Card from '../../ui/Card';
class Encryption extends Component {
componentDidMount() {
this.props.validateTlsConfig(this.props.encryption);
if (this.props.encryption.enabled) {
this.props.validateTlsConfig(this.props.encryption);
}
}
handleFormSubmit = (values) => {