Fixes 400 being thrown for NaN on disabling seats (#3945)

* Fixes 400 being thrown for NaN

* remove log

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2022-09-01 10:37:47 -06:00
1 parent a97bfbb1ce
commit 0db1b3f023
1 file changed
+1 -1
+1 -1
View File
@@ -579,7 +579,7 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {
id: eventType.id,
beforeEventBuffer: beforeBufferTime,
afterEventBuffer: afterBufferTime,
seatsPerTimeSlot,
seatsPerTimeSlot: Number.isNaN(seatsPerTimeSlot) ? null : seatsPerTimeSlot,
metadata: {
...(smartContractAddress ? { smartContractAddress } : {}),
...(giphyThankYouPage ? { giphyThankYouPage } : {}),