diff --git a/frontend/src/components/ReportCard/ReportCard.jsx b/frontend/src/components/ReportCard/ReportCard.jsx index 76f6b8a..35d851e 100644 --- a/frontend/src/components/ReportCard/ReportCard.jsx +++ b/frontend/src/components/ReportCard/ReportCard.jsx @@ -1,9 +1,10 @@ import styles from './ReportCard.module.css'; export default function ReportCard({ allCount = 10, correctCount = 7 }) { - const radius = 2 * Math.PI * 100; + const radius = 100; // Radius of the circles + const circumference = 2 * Math.PI * radius; // Circumference of the circles const percentage = allCount > 0 ? (correctCount / allCount) * 100 : 0; - const strokeDashoffset = radius - (percentage / 100) * radius; + const strokeDashoffset = circumference - (percentage / 100) * circumference; return (