From 3fb4fbb36239e86cc51125f0b460ba8a4a20917f Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Thu, 21 Sep 2023 07:12:47 -0600 Subject: [PATCH] Show full incident count to super users --- .../IncidentReportTracker/IncidentReportTracker.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/IncidentReportTracker/IncidentReportTracker.tsx b/src/components/IncidentReportTracker/IncidentReportTracker.tsx index 800d32eb87..119203281a 100644 --- a/src/components/IncidentReportTracker/IncidentReportTracker.tsx +++ b/src/components/IncidentReportTracker/IncidentReportTracker.tsx @@ -125,6 +125,12 @@ export function IncidentReportTracker(): JSX.Element { function updateCt(count: number) { const user = data.get("user"); + + if (user.is_superuser) { + setNormalCt(count); + return; + } + if (user.is_moderator || user.moderator_powers > 0) { const handled_today = user.reports_handled_today || 0; setNormalCt(Math.max(0, Math.min(count, DAILY_REPORT_GOAL - handled_today)));