Skip to content

Commit 8607695

Browse files
authored
Merge pull request #21 from Azure-Samples/issue/20/redux-store
Adding AAD_LOGOUT_SUCCESS case to reduxStore.js [Issue #20]
2 parents 222843f + af9f0bd commit 8607695

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sample/src/reduxStore.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ const rootReducer = (state = initialState, action) => {
3333
switch (action.type) {
3434
case 'AAD_LOGIN_SUCCESS':
3535
return { ...state, aadResponse: action.payload };
36+
case 'AAD_LOGOUT_SUCCESS':
37+
return { ...state, aadResponse: null };
3638
default:
3739
return state;
3840
}

0 commit comments

Comments
 (0)