Skip to content

Commit

Permalink
correct plans redirecting
Browse files Browse the repository at this point in the history
  • Loading branch information
matyson committed Nov 7, 2024
1 parent d15ff30 commit e38ca4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/spu-ui/src/app/plans/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { SelectPlan } from "../_components/select-plan";
export default async function Page() {
const session = await auth();

if (!session) {
redirect("/auth/signin");
if (!session || session.error) {
return redirect("/auth/signin?callbackUrl=/plans");
}

return (
Expand Down

0 comments on commit e38ca4a

Please sign in to comment.