diff --git a/lib/payments/stripe.ts b/lib/payments/stripe.ts index 603780c0..b326a10a 100644 --- a/lib/payments/stripe.ts +++ b/lib/payments/stripe.ts @@ -17,6 +17,7 @@ export async function createCheckoutSession({ }) { if (!user) { redirect(`/sign-up?redirect=checkout&priceId=${priceId}`); + return; } const session = await stripe.checkout.sessions.create({