aboutsummaryrefslogtreecommitdiff
path: root/src/reducers/console.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-09-16 23:32:19 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-09-16 23:32:19 +0900
commitc5529958d53146c8c6826673abe6431a19f1924d (patch)
tree4952c7ac1ded91d52fd6e424c229022b61b67aa3 /src/reducers/console.js
parentb2cddcd69b4ae06770d66808624fc43f3dcbcb0e (diff)
parentae394e28c0cbc8710d4937238c97328afddbca0f (diff)
Merge branch 'more-redux'
Diffstat (limited to 'src/reducers/console.js')
-rw-r--r--src/reducers/console.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/reducers/console.js b/src/reducers/console.js
index 3303802..27ccdc9 100644
--- a/src/reducers/console.js
+++ b/src/reducers/console.js
@@ -28,10 +28,13 @@ export default function reducer(state = defaultState, action = {}) {
commandShown: false,
});
case actions.CONSOLE_HIDE:
+ if (state.errorShown) {
+ // keep error message if shown
+ return state;
+ }
return Object.assign({}, state, {
errorShown: false,
commandShown: false
-
});
default:
return state;