Skip to content

Commit

Permalink
🐛 Hide favs when user did disable them (#315)
Browse files Browse the repository at this point in the history
fixes #292
  • Loading branch information
jheubuch authored Jan 6, 2024
1 parent 9fe71a5 commit 25b78d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ data class Status(
val business: StatusBusiness,
var likes: Int?,
var liked: Boolean?,
@SerializedName("isLikable") val likeable: Boolean?,
@SerializedName("train") val journey: Journey,
val event: Event?
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ private fun CheckInCardFooter(
Row(
verticalAlignment = Alignment.CenterVertically,
) {
if (status.liked != null && status.likes != null) {
if (status.liked != null && status.likes != null && status.likeable == true) {
Row(
modifier = Modifier
.clickable {
Expand Down

0 comments on commit 25b78d2

Please sign in to comment.