Skip to content

Commit 7b11d4d

Browse files
committed
Update fallback values in sendVoucherEmail function to use placeholders for ticket prices when Pretix is unreachable, ensuring email functionality remains intact.
1 parent 28a9dd8 commit 7b11d4d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

devcon/src/services/voucherEmail.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ export async function sendVoucherEmail(
188188
originalPrice = firstTicket ? formatPrice(parseFloat(firstTicket.originalPrice || firstTicket.price)) : '—'
189189
} catch {
190190
console.warn('[voucherEmail] Could not fetch ticket prices, using fallback')
191-
// Hardcoded fallback so the email still sends even if Pretix is unreachable
192-
discountedPrice = '99'
193-
originalPrice = '149'
191+
// Fallback placeholders so the email still sends even if Pretix is unreachable
192+
discountedPrice = 'XX'
193+
originalPrice = 'YY'
194194
}
195195
}
196196

0 commit comments

Comments
 (0)