diff --git a/frontend/src/individual_breeding_form.tsx b/frontend/src/individual_breeding_form.tsx index fa3f8da5..a4cf95fb 100644 --- a/frontend/src/individual_breeding_form.tsx +++ b/frontend/src/individual_breeding_form.tsx @@ -381,7 +381,7 @@ export function IndividualBreedingForm({ "breeding", newBreeding.breeding_id, "birth_date", - newBirth.birth_date + newBirthData.date ); closeDialog(); } diff --git a/frontend/src/individual_edit.tsx b/frontend/src/individual_edit.tsx index f0baf962..014864c3 100644 --- a/frontend/src/individual_edit.tsx +++ b/frontend/src/individual_edit.tsx @@ -214,6 +214,7 @@ export function IndividualEdit({ id }: { id: string | undefined }) { ) { handleUpdateIndividual("birth_date", formatDate(individual?.birth_date)); } else if ( + individual?.birth_date && individual?.birth_date?.split("-")[0].slice(-2) != oldIndividual?.birth_date?.split("-")[0].slice(-2) ) {