diff --git a/src/components/header/header.tsx b/src/components/header/header.tsx
index 86a1ec9d..bd286d5e 100644
--- a/src/components/header/header.tsx
+++ b/src/components/header/header.tsx
@@ -263,14 +263,14 @@ const Header = () => {
)}
- {!isMobile && (
-
diff --git a/src/views/author/author.tsx b/src/views/author/author.tsx
index 9a3e72cb..2b970d0d 100644
--- a/src/views/author/author.tsx
+++ b/src/views/author/author.tsx
@@ -51,7 +51,7 @@ const Author = () => {
increaseViewportBy={{ bottom: 1200, top: 600 }}
totalCount={authorComments?.length || 0}
data={authorComments}
- itemContent={(index, post) => (post &&
)}
+ itemContent={(index, post) => post &&
}
useWindowScroll={true}
components={{ Footer }}
endReached={loadMore}
diff --git a/src/views/profile/profile.tsx b/src/views/profile/profile.tsx
index 7e5b31d0..44c4cf7a 100644
--- a/src/views/profile/profile.tsx
+++ b/src/views/profile/profile.tsx
@@ -19,15 +19,9 @@ const Profile = () => {
const isUpvoted = isUpvotedView(location.pathname);
const isDownvoted = isDownvotedView(location.pathname);
- const upvotedCommentCids = useMemo(() =>
- accountVotes?.filter(vote => vote.vote === 1).map(vote => vote.commentCid) || [],
- [accountVotes]
- );
+ const upvotedCommentCids = useMemo(() => accountVotes?.filter((vote) => vote.vote === 1).map((vote) => vote.commentCid) || [], [accountVotes]);
- const downvotedCommentCids = useMemo(() =>
- accountVotes?.filter(vote => vote.vote === -1).map(vote => vote.commentCid) || [],
- [accountVotes]
- );
+ const downvotedCommentCids = useMemo(() => accountVotes?.filter((vote) => vote.vote === -1).map((vote) => vote.commentCid) || [], [accountVotes]);
const { comments: upvotedComments } = useComments({ commentCids: upvotedCommentCids });
const { comments: downvotedComments } = useComments({ commentCids: downvotedCommentCids });
@@ -45,7 +39,7 @@ const Profile = () => {
});
window.addEventListener('scroll', setLastVirtuosoState);
return () => window.removeEventListener('scroll', setLastVirtuosoState);
- }, []);
+ }, [account?.shortAddress, params.sortType]);
const lastVirtuosoState = lastVirtuosoStates?.[account?.shortAddress + params.sortType];
@@ -61,7 +55,7 @@ const Profile = () => {
increaseViewportBy={{ bottom: 1200, top: 600 }}
totalCount={accountComments?.length || 0}
data={virtuosoData}
- itemContent={(index, post) => (post &&
)}
+ itemContent={(index, post) => post &&
}
useWindowScroll={true}
ref={virtuosoRef}
restoreStateFrom={lastVirtuosoState}