diff options
author | ankit-thanekar007 <ankit.thanekar007@gmail.com> | 2021-02-25 12:39:31 -0800 |
---|---|---|
committer | ankit-thanekar007 <ankit.thanekar007@gmail.com> | 2021-02-25 12:39:31 -0800 |
commit | 2360e774d94e271d1d9db0d5b92b801b9325535e (patch) | |
tree | a51dd5fb2d7a2d39f48d5631448ba58a4a6e693c /src/store | |
parent | 47053e42a60151f04cb8a18ea86e4a96d03103b8 (diff) |
TMA-634-indentation and unused variables removed
Diffstat (limited to 'src/store')
-rw-r--r-- | src/store/reducers/userBlockReducer.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/store/reducers/userBlockReducer.ts b/src/store/reducers/userBlockReducer.ts index 90e4a04a..64bdda30 100644 --- a/src/store/reducers/userBlockReducer.ts +++ b/src/store/reducers/userBlockReducer.ts @@ -11,8 +11,9 @@ const userBlockSlice = createSlice({ updateBlockedList: (state, action) => { const {isBlocked, data} = action.payload; - if (!isBlocked) state.blockedUsers.push(data); - else { + if (!isBlocked) { + state.blockedUsers.push(data); + } else { state.blockedUsers = state.blockedUsers.filter( (user) => user.username != data.username, ); |