From f044fe9a9913bd29e206917a734cc71880b87328 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Thu, 13 Jul 2023 11:12:25 +0000 Subject: [PATCH] style: format code with prettier Format code with prettier This commit fixes the style issues introduced in 68a2bb4 according to the output from Prettier. Details: https://app.deepsource.com/gh/narayan954/dummygram/transform/3588aee7-f3d6-442b-8fe7-da9ef0c0a206/ --- src/pages/Profile/index.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); };