Skip to content

Commit

Permalink
Fix crash from unwrapping optional in GSRController
Browse files Browse the repository at this point in the history
  • Loading branch information
anli5005 committed Mar 24, 2024
1 parent f110cbe commit 37234a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions PennMobile/GSR-Booking/Controllers/GSRController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ extension GSRController: GSRBookable {

if times.count == 0 {
showAlert(withMsg: "Please select a timeslot to book.", title: "Empty Selection", completion: nil)
return
}

let sorted = times.sorted(by: {$0.startTime < $1.startTime})
Expand Down

0 comments on commit 37234a3

Please sign in to comment.