aboutsummaryrefslogtreecommitdiff
path: root/src/components/profile/Content.tsx
diff options
context:
space:
mode:
authorGeorge Rusu <george@tagg.id>2021-05-25 13:35:05 -0700
committerGeorge Rusu <george@tagg.id>2021-05-25 13:35:05 -0700
commit4089ccdc05ffa5e02c6e0be717626cbdc631b8f2 (patch)
treee279bfe3b33da17f85fc3ca83cbb1f338e05e4b3 /src/components/profile/Content.tsx
parenta5ef509d2a1f79d85c76ee766dabe96acac2a989 (diff)
parent7f991eef32475165f819dc8b666c5763f0021696 (diff)
Merge
Diffstat (limited to 'src/components/profile/Content.tsx')
-rw-r--r--src/components/profile/Content.tsx8
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,