aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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