HandleUpdateEnrollment
Function: handleUpdateEnrollment()
[object Object]
Defined in: app/components/Activity/ActivityDetailsTile/ActivityDetailsTile.handlers.tsx:171
Updates an existing enrollment's answers for the current user.
Parameters
authService
The authentication service instance for user authentication.
activity
The current activity object containing enrollments.
setActivity
Dispatch<SetStateAction<ActivityResponseDto | null>> | undefined
State setter to update the local activity data.
answers
Record<number, string>
The new set of answers to be updated.
setSubmitting
(submitting) => void
Callback to toggle the loading state.
Returns
Promise<void>