Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: 'LikeButton' non-persistent liked style
- Fixed by swapping the 'toggle' method for 'add' method at 'styleButton' function to always persist the liked style on the 'LikeButton' component when user keep liking the same project. - Simplify all the 'setWasLiked' method logic to just toggle the 'wasLiked' state value, without the need to check the previous value.
- Loading branch information