Fix pot label issue

master
Laurent 1 year ago
parent f611e88ae5
commit a83ee58248
  1. 6
      app/src/main/java/net/pokeranalytics/android/model/realm/handhistory/HandHistory.kt

@ -479,7 +479,11 @@ open class HandHistory : RealmObject(), Deletable, RowRepresentable, Filterable,
val heroWins: Boolean? val heroWins: Boolean?
get() { get() {
return this.heroIndex?.let { heroIndex -> return this.heroIndex?.let { heroIndex ->
heroIndex == this.largestWonPot?.position this.largestWonPot?.let { pot ->
heroIndex == pot.position
} ?: run { null }
// heroIndex == this.largestWonPot?.position
// this.winnerPots.any { it.position == heroIndex } // this.winnerPots.any { it.position == heroIndex }
} ?: run { } ?: run {
null null

Loading…
Cancel
Save