Fix error after sign out
This commit is contained in:
parent
ea12ef425b
commit
6dc9b4f6d3
@ -118,7 +118,13 @@ addReducer('gotToAuthQrCode', (global) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
addReducer('saveSession', (global, actions, payload) => {
|
addReducer('saveSession', (global, actions, payload) => {
|
||||||
storeSession(payload.sessionData, global.currentUserId);
|
const { sessionData } = payload;
|
||||||
|
|
||||||
|
if (sessionData) {
|
||||||
|
storeSession(payload.sessionData, global.currentUserId);
|
||||||
|
} else {
|
||||||
|
clearStoredSession();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
addReducer('signOut', () => {
|
addReducer('signOut', () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user