We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3d3f364 + 99f3964 commit 7711443Copy full SHA for 7711443
frontend/src/components/routes/ticket-widget/SelectTickets/index.tsx
@@ -183,6 +183,17 @@ const SelectTickets = (props: SelectTicketsProps) => {
183
})
184
});
185
186
+ // this is hacky way to add empty quantity for a sold out ticket.
187
+ // this is needed to avoid validation error when the ticket is sold out.
188
+ // @todo - refactor this code so returning here doesn't break the checkout process.
189
+ if (quantitiesValues.length === 0) {
190
+ quantitiesValues.push({
191
+ quantity: 0,
192
+ price_id: 0,
193
+ price: 0,
194
+ })
195
+ }
196
+
197
ticketValues.push({
198
ticket_id: Number(ticket.id),
199
quantities: quantitiesValues,
0 commit comments