Skip to content

Commit

Permalink
fix/kitchen-sink-isAuthenticated: fixed isAuthenticated state change …
Browse files Browse the repository at this point in the history
…on login fullfilled
  • Loading branch information
shrijan00003 committed Jul 8, 2023
1 parent 24fc343 commit fe418ee
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const slice = createSlice({
console.log('fulfilled', action)
state.user = action.payload.user
state.token = action.payload.token
state.isAuthenticated = true
})
.addMatcher(postsApi.endpoints.login.matchRejected, (state, action) => {
console.log('rejected', action)
Expand Down

0 comments on commit fe418ee

Please sign in to comment.