cleanup: remove logs

This commit is contained in:
Liyas Thomas
2021-05-15 06:47:13 +00:00
committed by GitHub
parent 8e3ecb4c25
commit 76866f78f0
13 changed files with 5 additions and 45 deletions

View File

@@ -44,12 +44,10 @@ export const currentUserInfo$ = new BehaviorSubject<UserInfo | null>(null)
*/
export async function initUserInfo() {
await updateUserInfo()
console.log("updated")
fb.idToken$.subscribe((token) => {
if (token) {
updateUserInfo()
console.log(token, "updateUserInfo")
} else {
currentUserInfo$.next(null)
}
@@ -75,8 +73,6 @@ async function updateUserInfo() {
`,
})
console.log(data)
currentUserInfo$.next({
uid: data.me.uid,
displayName: data.me.displayName,