This commit is contained in:
Austin Huang 2021-05-30 20:47:44 -04:00
parent 267096ff39
commit a037b68f27
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ class Comment(
return hasLikedComment
}
fun setLiked(liked: Boolean) {
fun setLiked(hasLikedComment: Boolean) {
commentLikeCount = if (hasLikedComment) commentLikeCount + 1 else commentLikeCount - 1
this.hasLikedComment = hasLikedComment
}