diff --git a/src/pages/Profile/index.jsx b/src/pages/Profile/index.jsx index e5184c65d..48a3672a9 100644 --- a/src/pages/Profile/index.jsx +++ b/src/pages/Profile/index.jsx @@ -149,7 +149,7 @@ function Profile() { setEmail( location?.state?.name === authUser?.displayName ? location?.state?.email || authUser.email - : "" + : "", ); setUid(location?.state?.uid || authUser.uid); } else { @@ -167,7 +167,7 @@ function Profile() { if (auth.currentUser) { const usernameQ = query( collection(db, "users"), - where("uid", "==", auth.currentUser.uid) + where("uid", "==", auth.currentUser.uid), ); const unsubscribe = onSnapshot(usernameQ, (querySnapshot) => { querySnapshot.forEach((doc) => { @@ -181,7 +181,7 @@ function Profile() { useEffect(() => { const q = query( collection(db, "posts"), - where("username", "==", location?.state?.name || name) + where("username", "==", location?.state?.name || name), ); const unsubscribe = onSnapshot(q, (querySnapshot) => { const userPosts = []; @@ -235,7 +235,7 @@ function Profile() { }); }) .catch((error) => console.error(error)); - } + }, ); setVisible(false); };