mirror of
https://github.com/ershisan99/it-incubator-todolist-ts-17-live-2024-08-17.git
synced 2025-12-16 12:33:29 +00:00
chore: refactor auth reducer to use mutable operations
This commit is contained in:
@@ -20,7 +20,7 @@ const authSlice = createSlice({
|
||||
initialState,
|
||||
reducers: {
|
||||
setIsLoggedIn(state, action: PayloadAction<boolean>) {
|
||||
return { ...state, isLoggedIn: action.payload }
|
||||
state.isLoggedIn = action.payload
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user