Skip to content

Commit 31ce75c

Browse files
Fix profile creation loading issue
1 parent 9548d20 commit 31ce75c

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

home/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@
306306
if (snap.exists()) return snap.data();
307307
const displayName = user.email.split("@")[0];
308308
const newProfile = {
309+
authorUid: user.uid,
309310
uid: user.uid,
310311
email: user.email,
311312
username: usernameFromEmail(user.email, user.uid),

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ <h1 id="title">Bei Twitter anmelden</h1>
176176
const snap = await getDoc(userRef);
177177
if (!snap.exists()) {
178178
await setDoc(userRef, {
179+
authorUid: user.uid,
179180
uid: user.uid,
180181
email: user.email,
181182
username: toUsername(user.email, user.uid),

0 commit comments

Comments
 (0)