diff --git a/src/components/Navbar/index.jsx b/src/components/Navbar/index.jsx
index d23437e82..5fe629349 100644
--- a/src/components/Navbar/index.jsx
+++ b/src/components/Navbar/index.jsx
@@ -148,9 +148,7 @@ function Navbar({ onClick, user, setUser }) {
- navigate(`/user/${user.username}`)
- }
+ onClick={() => navigate(`/user/${user.username}`)}
>
(
-
+
{name}
@{username}
diff --git a/src/components/Post/PostNav.jsx b/src/components/Post/PostNav.jsx
index 407250b21..8818f9482 100644
--- a/src/components/Post/PostNav.jsx
+++ b/src/components/Post/PostNav.jsx
@@ -49,9 +49,7 @@ const PostNav = ({
- isAnonymous ? navigate("/signup") : likesHandler()
- }
+ onClick={() => (isAnonymous ? navigate("/signup") : likesHandler())}
>
{tempLikeCount.indexOf(user?.uid) != -1 ? (
@@ -74,9 +72,7 @@ const PostNav = ({
{
- isAnonymous
- ? navigate("/signup")
- : setisCommentOpen(true);
+ isAnonymous ? navigate("/signup") : setisCommentOpen(true);
}}
>
diff --git a/src/components/SettingsComponents/Sidebar/index.jsx b/src/components/SettingsComponents/Sidebar/index.jsx
index 027143e5c..99db9a4bb 100644
--- a/src/components/SettingsComponents/Sidebar/index.jsx
+++ b/src/components/SettingsComponents/Sidebar/index.jsx
@@ -15,88 +15,54 @@ const SettingsSidebar = () => {