diff options
| author | Ivan Chen <ivan@tagg.id> | 2021-04-22 14:32:15 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-22 14:32:15 -0400 |
| commit | f0cff95cfa612b295caf68552bc3d29a7fb23a42 (patch) | |
| tree | dd3df697478a19048cd4bf6d0b499a91c1a93eb3 /src/store | |
| parent | 4e8e1c0d58424e6b63cfb8470fc0a73c0e6b102b (diff) | |
| parent | 33c172cc31957966b14321520c56816ba044db14 (diff) | |
Merge pull request #374 from IvanIFChen/hotfix-linting-fixup
[HOTFIX] Linter fixup
Diffstat (limited to 'src/store')
| -rw-r--r-- | src/store/actions/user.ts | 1 | ||||
| -rw-r--r-- | src/store/actions/userBlock.ts | 8 | ||||
| -rw-r--r-- | src/store/reducers/userBlockReducer.ts | 2 |
3 files changed, 5 insertions, 6 deletions
diff --git a/src/store/actions/user.ts b/src/store/actions/user.ts index c7d0d5a7..3ebd4190 100644 --- a/src/store/actions/user.ts +++ b/src/store/actions/user.ts @@ -233,4 +233,3 @@ export const suggestedPeopleAnimatedTutorialFinished = ( console.log('Error while updating suggested people linked state: ', error); } }; - 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, ); } }, |
