Skip to content

Commit

Permalink
feat(expo-bbq): preparing the expo onboarding component.
Browse files Browse the repository at this point in the history
  • Loading branch information
h0lybyte committed Nov 10, 2024
1 parent 52fc2fe commit a6b50be
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/expo-bbq/src/components/auth/TamaProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,15 @@ export function TamaProfile({
.eq('id', session.session.user.id) // Use session.user.id for filtering
.single();

if (profileError) {
throw profileError;
// 11-10-2024 - Going to redirect the user to the onboarding.
// if (profileError) {
// throw profileError;
// }

if (profileError || !profileData) {
// If no profile exists for the new user, redirect to onboarding
router.replace('/onboarding');
return;
}

setUsername(
Expand Down

0 comments on commit a6b50be

Please sign in to comment.