Skip to content

Commit 568d7d7

Browse files
authored
Update FirebaseAnalysis.ts
1 parent 5ed2b03 commit 568d7d7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib/FirebaseAnalysis.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ export function addLoggedInUser(user: User) {
2525
};
2626

2727
getDoc(userDoc).then((doc) => {
28-
if (doc.exists()) return;
28+
try {
29+
if (doc.exists()) return;
30+
} catch(err) {
31+
console.log(err)
32+
}
2933
setDoc(userDoc, userData, { merge: true });
3034
});
3135
}

0 commit comments

Comments
 (0)