diff options
author | Ivan Chen <ivan@tagg.id> | 2021-04-20 17:16:46 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-04-20 17:21:46 -0400 |
commit | bae0136cb1939302b758249a1978251bd37aaee8 (patch) | |
tree | 8788895fe72bef062a4de3b3b8e245d091dc3c1f /src/components/moments/MomentPostHeader.tsx | |
parent | 5ff7cab4bd36337b2c86e3d4915a6fc3ceef1ddb (diff) |
linted
Diffstat (limited to 'src/components/moments/MomentPostHeader.tsx')
-rw-r--r-- | src/components/moments/MomentPostHeader.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/moments/MomentPostHeader.tsx b/src/components/moments/MomentPostHeader.tsx index ff324c4a..8cf509ab 100644 --- a/src/components/moments/MomentPostHeader.tsx +++ b/src/components/moments/MomentPostHeader.tsx @@ -31,11 +31,11 @@ const MomentPostHeader: React.FC<MomentPostHeaderProps> = ({ }) => { const [drawerVisible, setDrawerVisible] = useState(false); const dispatch = useDispatch(); - const state: RootState = useStore().getState(); const navigation = useNavigation(); const {userId: loggedInUserId, username: loggedInUserName} = useSelector( (state: RootState) => state.user.user, ); + const state: RootState = useStore().getState(); const isOwnProfile = loggedInUserName === username; const navigateToProfile = async () => { if (userXId && !userXInStore(state, screenType, userXId)) { |