ramarko.bsky.social
UChicago CS Student - ramarko.com
1 posts
6 followers
23 following
comment in response to
post
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`
}```