From 37125b7405c3cc45d50537130896b320099bfcc7 Mon Sep 17 00:00:00 2001 From: rhahao <26148770+rhahao@users.noreply.github.com> Date: Sat, 14 Dec 2024 12:18:58 +0300 Subject: [PATCH] chore(reports): fixing code smells --- .../month_item/useMonthItem.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/features/reports/publisher_records_details/month_item/useMonthItem.tsx b/src/features/reports/publisher_records_details/month_item/useMonthItem.tsx index 02c79702a0..1dbd89f440 100644 --- a/src/features/reports/publisher_records_details/month_item/useMonthItem.tsx +++ b/src/features/reports/publisher_records_details/month_item/useMonthItem.tsx @@ -124,14 +124,7 @@ const useMonthItem = ({ month, person }: MonthItemProps) => { if (!branchReport) return true; - if (branchReport.report_data.submitted) { - return true; - } - - if (!branchReport.report_data.submitted) { - return true; - } - return false; + return true; }, [isInactive, month, first_report, branchReport]); const report_locked = useMemo(() => {