Skip to content

Commit

Permalink
Merge pull request #520 from pennlabs/anli/03-24-fix-gsr-bar-button-c…
Browse files Browse the repository at this point in the history
…rash

Fix crash from unwrapping optional in GSRController
  • Loading branch information
anli5005 authored Mar 24, 2024
2 parents f110cbe + 37234a3 commit 74df06c
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 74df06c

Please sign in to comment.