Skip to content

Commit

Permalink
merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
DovMa committed Jan 23, 2024
2 parents 84b8fc2 + 194bb60 commit a5eb737
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/forms/Registration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const RegistrationForm = ({
...callBacks,
});

const deleteFishStockingMutation = useMutation(() => api.deleteFishStocking(id!), {
const deleteFishStockingMutation = useMutation(() => api.cancelFishStocking(id!), {
...callBacks,
});

Expand Down Expand Up @@ -134,22 +134,22 @@ const RegistrationForm = ({
} = values;
const params = {
eventTime,
phone,
phone: phone || undefined,
geom,
assignedTo: assignedTo?.id,
stockingCustomer: stockingCustomer?.id,
location: location,
fishOrigin,
fishOrigin: fishOrigin.toUpperCase(),
fishOriginCompanyName,
...(fishOriginReservoir && {
fishOriginReservoir,
}),
batches: batches.map((batch) => {
return {
amount: batch.amount,
amount: batch.amount || undefined,
weight: batch.weight || undefined,
fishType: batch?.fishType?.id,
fishAge: batch?.fishAge?.id,
fishType: batch?.fishType?.id || undefined,
fishAge: batch?.fishAge?.id || undefined,
};
}),
};
Expand Down

0 comments on commit a5eb737

Please sign in to comment.