From b7a4e136430c16ee77e8d2a4c42179842e5f0d4b Mon Sep 17 00:00:00 2001 From: Jonas Hagberg Date: Tue, 7 Jan 2025 10:25:26 +0100 Subject: [PATCH] Enhance YearlyReportForm to include counts of females and males with certificates - Added calculations for the number of females and males with certificates to the form values. - This change improves the data captured in the YearlyReportForm, enhancing the overall functionality and user experience. --- frontend/src/YearlyReportForm.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/YearlyReportForm.tsx b/frontend/src/YearlyReportForm.tsx index bc96cb99..ca2d2827 100644 --- a/frontend/src/YearlyReportForm.tsx +++ b/frontend/src/YearlyReportForm.tsx @@ -195,6 +195,8 @@ const YearlyReportForm: React.FC = ({ ); values.numberOfFemalesUsedInBreeding = uniqueMothers.size; values.numberOfMalesUsedInBreeding = uniqueFathers.size; + values.numberOfFemalesWithCertificate = femaleRabbits.length; + values.numberOfMalesWithCertificate = maleRabbits.length; return values; };