Skip to content

Commit 3c50985

Browse files
authored
Merge pull request #3588 from shrijan00003/fix/kitchen-sink-isAuthenticated
fix/kitchen-sink-isAuthenticated: fixed isAuthenticated state change on login fullfilled
2 parents a2edf36 + fe418ee commit 3c50985

File tree

1 file changed

+1
-0
lines changed
  • examples/query/react/kitchen-sink/src/features/auth

1 file changed

+1
-0
lines changed

examples/query/react/kitchen-sink/src/features/auth/authSlice.ts

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const slice = createSlice({
2424
console.log('fulfilled', action)
2525
state.user = action.payload.user
2626
state.token = action.payload.token
27+
state.isAuthenticated = true
2728
})
2829
.addMatcher(postsApi.endpoints.login.matchRejected, (state, action) => {
2930
console.log('rejected', action)

0 commit comments

Comments
 (0)