fix: small issues

This commit is contained in:
2026-03-11 11:29:11 +01:00
parent 0a849bd9c5
commit 8a6d3035cb
2 changed files with 4 additions and 2 deletions

View File

@@ -312,7 +312,9 @@ function AccountPage() {
type="button"
disabled={checkoutMutation.isPending}
onClick={() =>
checkoutMutation.mutate(registration.managementToken!)
checkoutMutation.mutate(
registration.managementToken ?? "",
)
}
className="inline-flex items-center gap-2 rounded-lg bg-white px-4 py-2 font-semibold text-[#214e51] text-sm transition-colors hover:bg-white/90 disabled:cursor-not-allowed disabled:opacity-50"
>

View File

@@ -211,7 +211,7 @@ async function handleWebhook({ request }: { request: Request }) {
sendPaymentConfirmationEmail({
to: regRow.email,
firstName: regRow.firstName,
managementToken: regRow.managementToken!,
managementToken: regRow.managementToken ?? registrationToken,
drinkCardValue: regRow.drinkCardValue ?? undefined,
giftAmount: regRow.giftAmount ?? undefined,
}).catch((err) =>