From a1afa235c57ac298c4bfefe4c54dfd42b6855b71 Mon Sep 17 00:00:00 2001 From: votrascii Date: Sun, 29 Mar 2026 20:14:29 +0530 Subject: [PATCH] Fix incorrect percentage calculation in Sessions by Punctuality The totalSessions prop was hardcoded to 10 instead of using the actual value passed from the parent component. This caused the percentage calculation to be wrong (dividing by 10 instead of actual total). Fixes #38 Co-Authored-By: Claude Opus 4.6 --- components/common/dashboard-cards.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/common/dashboard-cards.tsx b/components/common/dashboard-cards.tsx index 551e9a2..a9d3de1 100644 --- a/components/common/dashboard-cards.tsx +++ b/components/common/dashboard-cards.tsx @@ -155,7 +155,7 @@ export function SessionsByPunctuality({ return (