diff --git a/apps/web/app/[locale]/profile/[memberId]/page.tsx b/apps/web/app/[locale]/profile/[memberId]/page.tsx
index dd6dfe852..81d7279f3 100644
--- a/apps/web/app/[locale]/profile/[memberId]/page.tsx
+++ b/apps/web/app/[locale]/profile/[memberId]/page.tsx
@@ -122,7 +122,11 @@ const Profile = React.memo(function ProfilePage({ params }: { params: { memberId
)}
- {activityScreens[activityFilter] ?? null}
+ {hook.tab !== 'worked' ? (
+
+ ) : (
+ activityScreens[activityFilter] ?? null
+ )}
>
diff --git a/apps/web/app/hooks/useInfinityFetch.ts b/apps/web/app/hooks/useInfinityFetch.ts
index ae3ea3856..bf56e8374 100644
--- a/apps/web/app/hooks/useInfinityFetch.ts
+++ b/apps/web/app/hooks/useInfinityFetch.ts
@@ -23,7 +23,6 @@ export const useInfinityScrolling = (arr: T[], lim?: number) => {
}, [limit, offset]);
React.useEffect(() => {
- console.log({ offset });
getSomeTasks(offset);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [offset]);
diff --git a/apps/web/lib/features/user-profile-tasks.tsx b/apps/web/lib/features/user-profile-tasks.tsx
index 7952dbd7b..220eec776 100644
--- a/apps/web/lib/features/user-profile-tasks.tsx
+++ b/apps/web/lib/features/user-profile-tasks.tsx
@@ -31,6 +31,7 @@ export function UserProfileTask({ profile, tabFiltered }: Props) {
profile.member?.running == true ? t.id !== profile.activeUserTeamTask?.id : t
);
const { nextOffset, data } = useInfinityScrolling(otherTasks);
+ const dataTodisplay = otherTasks.length > 10 ? otherTasks : data;
// const { total, onPageChange, itemsPerPage, itemOffset, endOffset, setItemsPerPage, currentItems } =
// usePagination(otherTasks);
@@ -84,7 +85,7 @@ export function UserProfileTask({ profile, tabFiltered }: Props) {
)}
- {data.map((task, index) => {
+ {dataTodisplay.map((task, index) => {
return (
-