Skip to content

Commit

Permalink
fix: onboarding condition
Browse files Browse the repository at this point in the history
  • Loading branch information
akshatmittal61 authored Jan 7, 2025
1 parent 001557a commit b6287a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const authenticatedPage: ServerSideAuthMiddleware = async (
try {
const headers = { cookie: req.headers.cookie };
const { data: user } = await AuthApi.verifyUserIfLoggedIn(headers);
if (user.name && user.phone) {
if (user.name) {
return onLoggedInAndOnboarded(user, headers);
} else {
return onLoggedInAndNotOnboarded(user, headers);
Expand Down

0 comments on commit b6287a8

Please sign in to comment.