aboutsummaryrefslogtreecommitdiff
path: root/src/store
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-04-20 18:01:40 -0400
committerIvan Chen <ivan@tagg.id>2021-04-20 18:01:40 -0400
commitbb1479dfcd8daad8ef2593d4ac65a0b1239a6139 (patch)
treeca3d73f914ccacb232f54011b7d6299984e17140 /src/store
parentc4e76811cae6cf14d5cc8daed9317f808087ed77 (diff)
linted
Diffstat (limited to 'src/store')
-rw-r--r--src/store/actions/userBlock.ts8
-rw-r--r--src/store/reducers/userBlockReducer.ts2
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,
);
}
},