Skip to content

Commit

Permalink
fix: unfollow action only for the user being follow
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfran committed Feb 20, 2025
1 parent 264ec57 commit ef10ab2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
cdkMenuItem
class="menu-item"
(cdkMenuItemTriggered)="follow(user.id)">
@if (isFollowing()) {
@if (isFollowing() === user.id) {
Unfollow
} @else {
Follow
Expand Down

0 comments on commit ef10ab2

Please sign in to comment.