From 2b7197eff699a6ef4449ef5c257926956b76142d Mon Sep 17 00:00:00 2001 From: batmanisko Date: Wed, 4 Feb 2026 13:40:20 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20zobrazen=C3=AD=20popis=C5=AF=20funkc?= =?UTF-8?q?=C3=AD=20m=C3=ADsto=20varnames=20ve=20statistik=C3=A1ch=20(#26)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/pages/StatsPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/pages/StatsPage.tsx b/client/src/pages/StatsPage.tsx index fdb2074..0f88eac 100644 --- a/client/src/pages/StatsPage.tsx +++ b/client/src/pages/StatsPage.tsx @@ -4,7 +4,7 @@ import Header from "../components/Header"; import { useAuth } from "../context/auth"; import Login from "../Login"; import { formatDate, getFirstWorkDayOfWeek, getHumanDate, getLastWorkDayOfWeek } from "../Utils"; -import { WeeklyStats, LunchChoice, VotingStats, getStats, getVotingStats } from "../../../types"; +import { WeeklyStats, LunchChoice, VotingStats, FeatureRequest, getStats, getVotingStats } from "../../../types"; import Loader from "../components/Loader"; import { faChevronLeft, faChevronRight, faGear } from "@fortawesome/free-solid-svg-icons"; import { Legend, Line, LineChart, Tooltip, XAxis, YAxis } from "recharts"; @@ -155,7 +155,7 @@ export default function StatsPage() { {sortedVotingStats.map(([feature, count]) => ( - {feature} + {FeatureRequest[feature as keyof typeof FeatureRequest] ?? feature} {count as number} ))}