aboutsummaryrefslogtreecommitdiff
path: root/src/components/console.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/console.js')
-rw-r--r--src/components/console.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/console.js b/src/components/console.js
index 177cfe5..3a7f88b 100644
--- a/src/components/console.js
+++ b/src/components/console.js
@@ -70,8 +70,8 @@ export default class ConsoleComponent {
});
}
- // TODO use store/reducer to update state.
- update(state) {
+ update() {
+ let state = this.store.getState().console;
if (!this.prevState.commandShown && state.commandShown) {
this.showCommand(state.commandText);
} else if (!state.commandShown) {