Skip to content
Permalink
Browse files

[DDW-92] only show invalid tls config error instead of connecting mes…

…sages
  • Loading branch information...
DominikGuzei committed Mar 13, 2019
1 parent c2ba5d2 commit 1c53d2c03f795941826923cd40b597ad4acafe48
Showing with 5 additions and 2 deletions.
  1. +1 −1 package.json
  2. +4 −1 source/renderer/app/components/loading/Loading.js
@@ -184,7 +184,7 @@
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged --pattern \"./**/*.{js,scss,json}\"",
"pre-commit": "pretty-quick --staged",
"pre-push": "yarn prettier:check && yarn lint && yarn flow:test && yarn manage:translations"
}
}
@@ -278,7 +278,10 @@ export default class Loading extends Component<Props, State> {
? messages.reconnecting
: messages.connecting;
}
if (isTlsCertInvalid && connectingMessage !== messages.stopping) {
const isConnectingMessage =
connectingMessage === messages.connecting ||
connectingMessage === messages.reconnecting;
if (isTlsCertInvalid && isConnectingMessage) {
return messages.tlsCertificateNotValidError;
}
return connectingMessage;

0 comments on commit 1c53d2c

Please sign in to comment.
You can’t perform that action at this time.