aboutsummaryrefslogtreecommitdiff
path: root/src/reducers
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-09-16 23:24:37 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-09-16 23:25:18 +0900
commitae394e28c0cbc8710d4937238c97328afddbca0f (patch)
tree4952c7ac1ded91d52fd6e424c229022b61b67aa3 /src/reducers
parentfb1d3b5962531a004bb14f7f78796f77149ee7e7 (diff)
keep error message
Diffstat (limited to 'src/reducers')
-rw-r--r--src/reducers/console.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/reducers/console.js b/src/reducers/console.js
index 31de654..27ccdc9 100644
--- a/src/reducers/console.js
+++ b/src/reducers/console.js
@@ -28,6 +28,10 @@ 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