Ramarko Bhattacharya
banner
ramarko.bsky.social
Ramarko Bhattacharya
@ramarko.bsky.social
UChicago CS Student - ramarko.com
Looks like there's a lil' bug here:
```
if (this.classList.contains('liked')) {
const { likes } = await likePost(postId); // This should call `unlikePost` lol
} else {
const { likes } = await unlikePost(postId); // and this `likePost`
}```
April 25, 2025 at 8:23 PM