Sfoglia il codice sorgente

fix type error after merge

Mike Plante 2 anni fa
parent
commit
424febc7cb
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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