From 14526a8fb4e26c2283a511cbd544453cbb6f449d Mon Sep 17 00:00:00 2001 From: andres Date: Sat, 17 Aug 2024 19:32:25 +0200 Subject: [PATCH] chore: refactor auth reducer to use mutable operations --- src/features/Login/auth-reducer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/Login/auth-reducer.ts b/src/features/Login/auth-reducer.ts index 7dc7903..782a5f0 100644 --- a/src/features/Login/auth-reducer.ts +++ b/src/features/Login/auth-reducer.ts @@ -20,7 +20,7 @@ const authSlice = createSlice({ initialState, reducers: { setIsLoggedIn(state, action: PayloadAction) { - return { ...state, isLoggedIn: action.payload } + state.isLoggedIn = action.payload }, }, })