diff options
author | =Corey Hulen <corey@hulen.com> | 2015-09-25 08:12:16 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-09-25 08:12:16 -0700 |
commit | fb1ba90051001ab3ec2d16d334b0fa251d393bd7 (patch) | |
tree | dce2783eb7d84b5e2683fd3a8247dcc1dc3ccaf2 | |
parent | d989be85cb52b66d092db9b5647f8fcc2df17a8f (diff) | |
download | chat-fb1ba90051001ab3ec2d16d334b0fa251d393bd7.tar.gz chat-fb1ba90051001ab3ec2d16d334b0fa251d393bd7.tar.bz2 chat-fb1ba90051001ab3ec2d16d334b0fa251d393bd7.zip |
Fixing typo
-rw-r--r-- | web/react/components/error_bar.jsx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/web/react/components/error_bar.jsx b/web/react/components/error_bar.jsx index b8775ecaa..05726e860 100644 --- a/web/react/components/error_bar.jsx +++ b/web/react/components/error_bar.jsx @@ -9,11 +9,11 @@ export default class ErrorBar extends React.Component { this.onErrorChange = this.onErrorChange.bind(this); this.handleClose = this.handleClose.bind(this); - this.prevTimmer = null; + this.prevTimer = null; this.state = ErrorStore.getLastError(); if (this.state && this.state.message) { - this.prevTimmer = setTimeout(this.handleClose, 10000); + this.prevTimer = setTimeout(this.handleClose, 10000); } } @@ -34,14 +34,14 @@ export default class ErrorBar extends React.Component { onErrorChange() { var newState = ErrorStore.getLastError(); - if (this.prevTimmer != null) { - clearInterval(this.prevTimmer); - this.prevTimmer = null; + if (this.prevTimer != null) { + clearInterval(this.prevTimer); + this.prevTimer = null; } if (newState) { this.setState(newState); - this.prevTimmer = setTimeout(this.handleClose, 10000); + this.prevTimer = setTimeout(this.handleClose, 10000); } else { this.setState({message: null}); } |