Skip to content

Commit

Permalink
fix redirect userprofile comments to profile
Browse files Browse the repository at this point in the history
  • Loading branch information
JW-Rami committed Sep 5, 2023
1 parent 2d3057a commit 02b04a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function PostsComments({
function redirectToProfileFromComment(e) {
if (userType === "athlete") {
navigate(`/athleteprofile/${userId}`);
} else if (userType === "athlete") {
} else {
navigate(`/userprofile/${userId}`);
}
}
Expand Down

0 comments on commit 02b04a5

Please sign in to comment.