aboutsummaryrefslogtreecommitdiff
path: root/src/console/components/console.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/console/components/console.js')
-rw-r--r--src/console/components/console.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/console/components/console.js b/src/console/components/console.js
index 9023d91..b8431ce 100644
--- a/src/console/components/console.js
+++ b/src/console/components/console.js
@@ -72,14 +72,14 @@ export default class ConsoleComponent {
update() {
let state = this.store.getState();
- if (!this.prevState.commandShown && state.commandShown) {
+ if (this.prevState.mode !== 'command' && state.mode === 'command') {
this.showCommand(state.commandText);
- } else if (!state.commandShown) {
+ } else if (state.mode !== 'command') {
this.hideCommand();
}
- if (state.errorShown) {
- this.setErrorText(state.errorText);
+ if (state.mode === 'error') {
+ this.setErrorText(state.messageText);
this.showError();
} else {
this.hideError();