Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for GH-1041: Sign in Screen disappears on 2nd sign in attempt from the same Panel session #70

Merged
merged 2 commits into from May 21, 2018
Merged
Changes from all commits
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

@@ -11,7 +11,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0
*/

import { LOGIN_SUCCESS, LOGIN_FAILED } from '../constants/constants';
import { LOGIN_SUCCESS, LOGIN_FAILED, LOGOUT } from '../constants/constants';

const initialState = {
loginSuccess: false,
@@ -33,6 +33,9 @@ export default (state = initialState, action) => {
case LOGIN_FAILED: {
return Object.assign({}, state, { loginFailed: true });
}
case LOGOUT: {
return Object.assign({}, state, initialState);
}
default: return state;
}
};
ProTip! Use n and p to navigate between commits in a pull request.