Fixes displaying an old result when coming back to a DVM screen

This commit is contained in:
Vitor Pamplona
2024-12-10 14:17:50 -05:00
parent 83235dab69
commit 8b80ac13db
3 changed files with 9 additions and 5 deletions

View File

@@ -307,7 +307,7 @@ class BiMaxOfCollector<K, V>(
v: V,
) {
if (filter.filter(k, v)) {
if (maxK == null || comparator.compare(v, maxV) > 1) {
if (maxK == null || comparator.compare(v, maxV) > 0) {
maxK = k
maxV = v
}