CLASSROOMIO-T-1: 1st logic for signup

This commit is contained in:
Rotimi Best
2022-11-30 09:18:41 +01:00
parent e14af6b1ad
commit 8e169241e1
6 changed files with 192 additions and 71 deletions
+2 -1
View File
@@ -37,9 +37,9 @@
});
async function getProfile() {
console.log('Get user profile');
// Get user profile
const authUser = supabase.auth.user();
console.log('Get user profile', authUser);
// Check if user has profile
let {
@@ -82,6 +82,7 @@
goto('/dashboard');
}
}
$user.fetchingUser = false;
} else if (profileData) {
// Profile exists, go to profile page
$user.fetchingUser = false;