summaryrefslogtreecommitdiffstats
path: root/web/react/components/textbox.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-03-01 08:27:57 -0500
committerChristopher Speller <crspeller@gmail.com>2016-03-01 08:27:57 -0500
commita66e9513ad48089f16469509ab4fad633f8eaac5 (patch)
tree8ec3b1be136733b7be7f6aeee2e91b81cebf245c /web/react/components/textbox.jsx
parent39c83f70fc227e9bb88c24b15ff2b8748e9d670b (diff)
parent6c18e13f8ae4d8785b598adc0cb3e93c27cec849 (diff)
downloadchat-a66e9513ad48089f16469509ab4fad633f8eaac5.tar.gz
chat-a66e9513ad48089f16469509ab4fad633f8eaac5.tar.bz2
chat-a66e9513ad48089f16469509ab4fad633f8eaac5.zip
Merge pull request #2276 from mattermost/PLT-2030
PLT-2030 fixing error handling
Diffstat (limited to 'web/react/components/textbox.jsx')
-rw-r--r--web/react/components/textbox.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/react/components/textbox.jsx b/web/react/components/textbox.jsx
index ec299087d..23ecfb57b 100644
--- a/web/react/components/textbox.jsx
+++ b/web/react/components/textbox.jsx
@@ -59,9 +59,9 @@ export default class Textbox extends React.Component {
}
onRecievedError() {
- const errorState = ErrorStore.getLastError();
+ const errorCount = ErrorStore.getConnectionErrorCount();
- if (errorState && errorState.connErrorCount > 0) {
+ if (errorCount > 0) {
this.setState({connection: 'bad-connection'});
} else {
this.setState({connection: ''});