Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions WatchApp Extension/Scenes/GlucoseChartValueHashable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ extension GlucoseChartValueHashable {
var chartHashValue: Int {
var hashValue = start.timeIntervalSinceReferenceDate.hashValue
hashValue ^= end.timeIntervalSince(start).hashValue
hashValue ^= min.hashValue
// HKQuantity.hashValue returns 0, so we need to convert
hashValue ^= min.doubleValue(for: .milligramsPerDeciliter).hashValue
if min != max {
hashValue ^= max.hashValue
hashValue ^= max.doubleValue(for: .milligramsPerDeciliter).hashValue
}
return hashValue
}
Expand Down