Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
noppefoxwolf committed May 29, 2021
1 parent dd8706a commit 7fc296d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/DebugMenu/Plugin/Complication/UI/GraphView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class GraphView: UIView {
func reload(data: [Double], capacity: Int, maxValue: Double? = nil) {
self.data = data.suffix(capacity).map({ $0 })
self.capacity = capacity
self.maxValue = maxValue ?? data.max()
self.maxValue = maxValue ?? data.max() ?? 0
setNeedsDisplay()
}

Expand Down

0 comments on commit 7fc296d

Please sign in to comment.