From 02b04a5a844907371aeb648e8d96b71dab2114a4 Mon Sep 17 00:00:00 2001 From: Ra Date: Tue, 5 Sep 2023 06:37:31 +0200 Subject: [PATCH] fix redirect userprofile comments to profile --- .../Components/PostsComponents/PostsComments/PostsComments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/Components/PostsComponents/PostsComments/PostsComments.js b/client/src/Components/PostsComponents/PostsComments/PostsComments.js index ff7754d9..af7f4ed2 100644 --- a/client/src/Components/PostsComponents/PostsComments/PostsComments.js +++ b/client/src/Components/PostsComponents/PostsComments/PostsComments.js @@ -68,7 +68,7 @@ function PostsComments({ function redirectToProfileFromComment(e) { if (userType === "athlete") { navigate(`/athleteprofile/${userId}`); - } else if (userType === "athlete") { + } else { navigate(`/userprofile/${userId}`); } }