diff options
author | Ivan Chen <ivan@tagg.id> | 2021-05-24 17:23:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-24 17:23:04 -0400 |
commit | 53f624423fa8f758da5542e62704b59fa53316ea (patch) | |
tree | 9e3422d22e4ccbd71e0dfa4f608e155d57d28092 /src/components/profile/Content.tsx | |
parent | 5afdf9208fd3d7498a2595797e6c9fb5f567fc61 (diff) | |
parent | b8958cda3485af46181e8a6091f12718acfb621c (diff) |
Merge pull request #444 from shravyaramesh/tma853-lint-errors
[TMA-853/851] Lint errors
Diffstat (limited to 'src/components/profile/Content.tsx')
-rw-r--r-- | src/components/profile/Content.tsx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/components/profile/Content.tsx b/src/components/profile/Content.tsx index 8298dc9a..2d1002dd 100644 --- a/src/components/profile/Content.tsx +++ b/src/components/profile/Content.tsx @@ -38,11 +38,9 @@ interface ContentProps { } const Content: React.FC<ContentProps> = ({userXId, screenType}) => { const dispatch = useDispatch(); - const { - user = NO_USER, - profile = NO_PROFILE, - } = useSelector((state: RootState) => - userXId ? state.userX[screenType][userXId] : state.user, + const {user = NO_USER, profile = NO_PROFILE} = useSelector( + (state: RootState) => + userXId ? state.userX[screenType][userXId] : state.user, ); const {blockedUsers = EMPTY_PROFILE_PREVIEW_LIST} = useSelector( (state: RootState) => state.blocked, |