From 8ad81f02dba3ff9832e896f4938069488fce03a3 Mon Sep 17 00:00:00 2001 From: Pramod Mahajan Date: Sun, 4 May 2025 02:48:54 +0530 Subject: [PATCH] Removed unnecessary filtering from the UI. --- src/components/Activities/ReportTaskComments.jsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/components/Activities/ReportTaskComments.jsx b/src/components/Activities/ReportTaskComments.jsx index bf651ccf..1f516698 100644 --- a/src/components/Activities/ReportTaskComments.jsx +++ b/src/components/Activities/ReportTaskComments.jsx @@ -1,5 +1,4 @@ import React, { useEffect, useState, useRef } from "react"; -import { useProfile } from "../../hooks/useProfile"; import moment from "moment"; import { useForm } from "react-hook-form"; import { zodResolver } from "@hookform/resolvers/zod"; @@ -16,7 +15,6 @@ const schema = z.object({ const ReportTaskComments = ({ commentsData, closeModal }) => { const [loading, setloading] = useState(false); - const { profile } = useProfile(); const [comments, setComment] = useState([]); const [bgClass, setBgClass] = useState(""); const { @@ -38,7 +36,6 @@ const ReportTaskComments = ({ commentsData, closeModal }) => { containerRef.current.scrollTop = containerRef.current.scrollHeight; } }, [comments]); - const isLoggedUser = (usrId) => profile?.employeeInfo.id === usrId; const onSubmit = async (data) => { let sendComment = {