From 281e9658f6883cc9db24a005e4d5aad1cf4cf665 Mon Sep 17 00:00:00 2001 From: Innocent-akim Date: Sat, 7 Dec 2024 10:18:48 +0200 Subject: [PATCH] fix:coderabbitai --- apps/web/app/[locale]/timesheet/[memberId]/page.tsx | 6 +++++- apps/web/lib/features/task/task-displays.tsx | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/web/app/[locale]/timesheet/[memberId]/page.tsx b/apps/web/app/[locale]/timesheet/[memberId]/page.tsx index a8adbfc94..e1acd10f2 100644 --- a/apps/web/app/[locale]/timesheet/[memberId]/page.tsx +++ b/apps/web/app/[locale]/timesheet/[memberId]/page.tsx @@ -151,7 +151,11 @@ const TimeSheet = React.memo(function TimeSheetPage({ params }: { params: { memb classNameIcon="bg-[#3D5A80] shadow-[#3d5a809c] " /> {isManage && ( entry.employee.id) + .filter((id, index, array) => array.indexOf(id) === index) + .length} title="Members Worked" description="People worked since last time" icon={} diff --git a/apps/web/lib/features/task/task-displays.tsx b/apps/web/lib/features/task/task-displays.tsx index c39f6da58..22132c12a 100644 --- a/apps/web/lib/features/task/task-displays.tsx +++ b/apps/web/lib/features/task/task-displays.tsx @@ -5,7 +5,7 @@ import { TaskIssueStatus } from './task-issue'; import { formatDate, secondsToTime } from '@/app/helpers'; import { ClockIcon } from "@radix-ui/react-icons" import React from 'react'; -import { CalendarArrowDown, CalendarClock, UserPlusIcon } from 'lucide-react'; +import { CalendarArrowDown, UserPlusIcon } from 'lucide-react'; type Props = { task: Nullable;