Skip to content

Commit 09889da

Browse files
fix onboarding hopefully
1 parent ed7d5fe commit 09889da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/onboarding.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,11 @@ export async function getServerSideProps(ctx: GetServerSidePropsContext) {
173173
.from(schema.users)
174174
.where(eq(schema.users.id, session.user.id));
175175

176-
if (isOnboarded)
176+
if (isOnboarded.length > 0)
177177
return {
178178
redirect: {
179179
permanent: false,
180-
destination: "/app",
180+
destination: "/",
181181
},
182182
};
183183

0 commit comments

Comments
 (0)