File tree 1 file changed +4
-4
lines changed
docs/tutorials/essentials 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -403,7 +403,7 @@ import { createAppAsyncThunk } from '@/app/withTypes'
403
403
404
404
// highlight-next-line
405
405
import { apiSlice } from ' @/features/api/apiSlice'
406
- import { selectCurrentUsername } from ' @/features/auth/authSlice'
406
+ import { selectCurrentUserId } from ' @/features/auth/authSlice'
407
407
408
408
export interface User {
409
409
id: string
@@ -433,9 +433,9 @@ export const selectUserById = createSelector(
433
433
)
434
434
435
435
export const selectCurrentUser = (state : RootState ) => {
436
- const currentUsername = selectCurrentUsername (state )
437
- if (currentUsername ) {
438
- return selectUserById (state , currentUsername )
436
+ const currentUserId = selectCurrentUserId (state )
437
+ if (currentUserId ) {
438
+ return selectUserById (state , currentUserId )
439
439
}
440
440
}
441
441
// highlight-end
You can’t perform that action at this time.
0 commit comments