Skip to content

Commit c9af5db

Browse files
committed
Replace deprecated plotAreaFrame
1 parent e46322c commit c9af5db

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

WooCommerce/Classes/ViewRelated/Dashboard/StoreStats/StoreStatsChart.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ struct StoreStatsChart: View {
101101
return
102102
}
103103

104-
let xPosition = location.x - geometry[proxy.plotAreaFrame].origin.x
104+
guard let plotFrame = proxy.plotFrame else {
105+
return
106+
}
107+
let xPosition = location.x - geometry[plotFrame].origin.x
105108
guard let date: Date = proxy.value(atX: xPosition) else {
106109
return
107110
}

0 commit comments

Comments
 (0)