Explorar o código

fix type error after merge

Mike Plante %!s(int64=2) %!d(string=hai) anos
pai
achega
424febc7cb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      LiveActivity/LiveActivity.swift

+ 1 - 1
LiveActivity/LiveActivity.swift

@@ -77,7 +77,7 @@ struct LiveActivity: Widget {
                 ForEach(context.state.chart.indices, id: \.self) { index in
                     LineMark(
                         x: .value("Time", context.state.chartDate[index] ?? Date()),
-                        y: .value("Value", context.state.chart[index])
+                        y: .value("Value", context.state.chart[index] ?? 0)
                     ).foregroundStyle(Color.green.gradient).symbolSize(12)
                 }
             }.chartPlotStyle { plotContent in