mirror of
https://github.com/ev-map/EVMap.git
synced 2025-12-23 23:27:46 -05:00
Fix current/voltage mixup for merged Chargepoints (#365)
This commit is contained in:
@@ -131,8 +131,8 @@ data class ChargeLocation(
|
||||
.filter { it.type == variant.type && it.power == variant.power }
|
||||
val count = filtered.sumOf { it.count }
|
||||
Chargepoint(variant.type, variant.power, count,
|
||||
filtered.map { it.voltage }.distinct().singleOrNull(),
|
||||
filtered.map { it.current }.distinct().singleOrNull()
|
||||
filtered.map { it.current }.distinct().singleOrNull(),
|
||||
filtered.map { it.voltage }.distinct().singleOrNull()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user