Skip to content

Commit

Permalink
Update ETicketViewModel.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
anantyan committed Feb 9, 2024
1 parent f5c434d commit 5a3fb6d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class ETicketViewModel @Inject constructor() : ViewModel() {
passenger?.infant?.let {
list.addAll(it.map { name -> Passenger(name, "Bayi") })
}
return list.distinctBy { name }
return list.distinct()
}

data class Passenger(val name: String?, val type: String)
}
}

0 comments on commit 5a3fb6d

Please sign in to comment.