Skip to content

Commit

Permalink
chore: fix 409 error for enrolledAt date in the future
Browse files Browse the repository at this point in the history
  • Loading branch information
simonadomnisoru committed Jan 23, 2025
1 parent 88d021e commit 91c1893
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ export const createServerData = ({
relationship: ?Object,
enrollment: Object,
}) => {
const updatedEnrollment = { ...enrollment, events: [...enrollment.events, linkedEvent] };
if (linkedEvent) {
return {
enrollments: [updatedEnrollment],
events: [...enrollment.events, linkedEvent],
relationships: [relationship],
};
}
Expand Down

0 comments on commit 91c1893

Please sign in to comment.