Verified Commit 8bce38ed authored by Sandro Lutz's avatar Sandro Lutz
Browse files

Fix event signup without additional fields

parent 336e77dc
Pipeline #58289 passed with stages
in 10 minutes and 5 seconds
......@@ -387,7 +387,7 @@ const EventDetails = ({ eventId, ...props }) => {
onClick={updateAction}
disabled={
(hasEmailField && !isEmailValid) ||
!isAdditionalValuesValid ||
(hasAdditionalFields && !isAdditionalValuesValid) ||
(signup && signup.isPending)
}
variant="outlined"
......
......@@ -93,7 +93,9 @@ const postSignup = ({ eventId, additionalFields = null, email = null }) => (
data: {
event: eventId,
user: session.user,
additional_fields: JSON.stringify(additionalFields),
additional_fields: additionalFields
? JSON.stringify(additionalFields)
: undefined,
email,
},
dataType: 'application/json',
......@@ -119,7 +121,9 @@ const patchSignup = ({ id, etag, eventId, additionalFields = null }) => ({
method: 'PATCH',
etag,
data: {
additional_fields: JSON.stringify(additionalFields),
additional_fields: additionalFields
? JSON.stringify(additionalFields)
: undefined,
},
dataType: 'application/json',
})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment