Stabilize beta release with warning cleanup and edge-case fixes
This commit is contained in:
@@ -338,8 +338,7 @@ struct GamePickerStep: View {
|
||||
endDate = calendar.startOfDay(for: newEnd)
|
||||
} else {
|
||||
// Multiple games: span from first to last with 1-day buffer
|
||||
let firstGameDate = gameDates.first!
|
||||
let lastGameDate = gameDates.last!
|
||||
guard let firstGameDate = gameDates.first, let lastGameDate = gameDates.last else { return }
|
||||
let newStart = calendar.date(byAdding: .day, value: -1, to: firstGameDate) ?? firstGameDate
|
||||
let newEnd = calendar.date(byAdding: .day, value: 1, to: lastGameDate) ?? lastGameDate
|
||||
startDate = calendar.startOfDay(for: newStart)
|
||||
|
||||
Reference in New Issue
Block a user