From ae394e28c0cbc8710d4937238c97328afddbca0f Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sat, 16 Sep 2017 23:24:37 +0900 Subject: [PATCH] keep error message --- src/reducers/console.js | 4 ++++ 1 file changed, 4 insertions(+) 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