This commit is contained in:
Jamie Brunton committed 2025-12-31 09:43:10 +00:00
1 parent dfcf0ba289
commit 71667d6104
3 files changed
+22 -3

No files matched your search

+1
View File
@@ -159,6 +159,7 @@ export default function OnboardingScreen() {
console.log('[Onboarding] Profile updated successfully, fetching user...');
await fetchUser();
console.log('[Onboarding] User fetched, navigating to home...');
Events.profileUpdated(["name", "gender", "usage_reason", "show_explicit_content"]);
Events.onboardingComplete();
router.replace('/');
} catch (err: any) {
+2
View File
@@ -121,6 +121,7 @@ export default function ProfileScreen() {
// Refresh user data and packs to reflect the change
await fetchUser();
await fetchPacks();
Events.profileUpdated(["show_explicit_content"]);
} catch (error) {
// Revert on error
setShowExplicit(!value);
@@ -174,6 +175,7 @@ export default function ProfileScreen() {
await fetchUser();
setIsEditingName(false);
Events.profileUpdated(["name"]);
} catch (error) {
Alert.alert("Error", "Failed to update name. Please try again.");
setNewName(user.name || "");