From 4d217583b099da6a2a2773d0870ab39e36a9b141 Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Thu, 4 Apr 2019 14:54:57 +0300 Subject: [PATCH] - client: validate encryption if enabled Closes #700 --- client/src/components/Settings/Encryption/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/components/Settings/Encryption/index.js b/client/src/components/Settings/Encryption/index.js index 09efec6f..b84ee889 100644 --- a/client/src/components/Settings/Encryption/index.js +++ b/client/src/components/Settings/Encryption/index.js @@ -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) => {