diff options
Diffstat (limited to 'src/store')
| -rw-r--r-- | src/store/actions/userBlock.ts | 8 | ||||
| -rw-r--r-- | src/store/reducers/userBlockReducer.ts | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/store/actions/userBlock.ts b/src/store/actions/userBlock.ts index f903e99e..be6f9331 100644 --- a/src/store/actions/userBlock.ts +++ b/src/store/actions/userBlock.ts @@ -1,9 +1,9 @@ -import {RootState} from '../rootReducer'; -import {ProfilePreviewType, UserType} from '../../types/types'; -import {blockOrUnblockUser, loadBlockedUsers} from '../../services'; import {Action, ThunkAction} from '@reduxjs/toolkit'; -import {userBlockFetched, updateBlockedList, userLoggedIn} from '../reducers'; +import {blockOrUnblockUser, loadBlockedUsers} from '../../services'; +import {ProfilePreviewType, UserType} from '../../types/types'; import {getTokenOrLogout} from '../../utils'; +import {updateBlockedList, userBlockFetched} from '../reducers'; +import {RootState} from '../rootReducer'; export const loadBlockedList = ( userId: string, diff --git a/src/store/reducers/userBlockReducer.ts b/src/store/reducers/userBlockReducer.ts index 64bdda30..68b9a544 100644 --- a/src/store/reducers/userBlockReducer.ts +++ b/src/store/reducers/userBlockReducer.ts @@ -15,7 +15,7 @@ const userBlockSlice = createSlice({ state.blockedUsers.push(data); } else { state.blockedUsers = state.blockedUsers.filter( - (user) => user.username != data.username, + (user) => user.username !== data.username, ); } }, |
