Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor-UI-Logic-Bug #541

Merged

Conversation

rahul31124
Copy link
Contributor

@rahul31124 rahul31124 commented Jan 29, 2025

This PR resolves the issue of following and unfollowing a user. Previously, in the onFollowButtonClick function, the isFollowing status was passed . If the status was false, the followUser function would be called, even if the user was already following, leading to redundant actions. I have updated the logic so that if the user is not following, false will be passed to follow, and if the user is already following, true will be passed to unfollow the user.

Before

Bug_Follow_Button_Before.webm
After
Bug_Follow_Button_After.webm

@rahul31124
Copy link
Contributor Author

Hi,@07jasjeet is everything looks good?

Copy link
Collaborator

@07jasjeet 07jasjeet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @rahul31124, thanks for identifying this bug and fixing it. Changes LGTM.

@07jasjeet 07jasjeet merged commit d50f742 into metabrainz:main Jan 29, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants