Skip to content

Commit

Permalink
Enhance YearlyReportForm to include counts of females and males with …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
jhagberg committed Jan 7, 2025
1 parent 4b54bd8 commit b7a4e13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/YearlyReportForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ const YearlyReportForm: React.FC<YearlyReportFormProps> = ({
);
values.numberOfFemalesUsedInBreeding = uniqueMothers.size;
values.numberOfMalesUsedInBreeding = uniqueFathers.size;
values.numberOfFemalesWithCertificate = femaleRabbits.length;
values.numberOfMalesWithCertificate = maleRabbits.length;

return values;
};
Expand Down

0 comments on commit b7a4e13

Please sign in to comment.