diff options
author | =Corey Hulen <corey@hulen.com> | 2016-02-26 09:49:29 -0800 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2016-02-26 09:49:29 -0800 |
commit | a0cc464c973fe0b2ca8aa1fa386656435bdbfbec (patch) | |
tree | 77646ea56732d30d87e975b9ccccae273f6a1915 /web/react/components/textbox.jsx | |
parent | ce5ea641aafa269aad44d1d3dd31db30e8fc2b04 (diff) | |
download | chat-a0cc464c973fe0b2ca8aa1fa386656435bdbfbec.tar.gz chat-a0cc464c973fe0b2ca8aa1fa386656435bdbfbec.tar.bz2 chat-a0cc464c973fe0b2ca8aa1fa386656435bdbfbec.zip |
PLT-2030 fixing error handling
Diffstat (limited to 'web/react/components/textbox.jsx')
-rw-r--r-- | web/react/components/textbox.jsx | 4 |
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: ''}); |