Skip to content

Commit

Permalink
fix(stripe): add missing return (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
slavingia authored Sep 28, 2024
2 parents a7ba8c1 + c9b18ad commit 9b117cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/payments/stripe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 9b117cc

Please sign in to comment.