diff options
Diffstat (limited to 'src/reducers/console.js')
-rw-r--r-- | src/reducers/console.js | 5 |
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; |