summaryrefslogtreecommitdiffstats
path: root/web/react/components/error_bar.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'web/react/components/error_bar.jsx')
-rw-r--r--web/react/components/error_bar.jsx12
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});
}