Fixes successRedirectUrl

This commit is contained in:
zomars 2022-08-01 17:19:45 -06:00
parent c1896fc833
commit 299f69aa7b

View File

@ -854,6 +854,7 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {
seatsPerTimeSlot,
recurringEvent,
locations,
successRedirectUrl,
...input
} = values;
@ -867,6 +868,7 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {
id: eventType.id,
beforeEventBuffer: beforeBufferTime,
afterEventBuffer: afterBufferTime,
successRedirectUrl: successRedirectUrl || undefined,
seatsPerTimeSlot,
metadata: {
...(smartContractAddress ? { smartContractAddress } : {}),