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} ))}