From 37234a3f90021f0234e56a0f27e0dbc36d3b8624 Mon Sep 17 00:00:00 2001 From: Anthony Li Date: Sun, 24 Mar 2024 12:15:20 -0400 Subject: [PATCH] Fix crash from unwrapping optional in GSRController --- PennMobile/GSR-Booking/Controllers/GSRController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/PennMobile/GSR-Booking/Controllers/GSRController.swift b/PennMobile/GSR-Booking/Controllers/GSRController.swift index d9b127728..ae8bf3f84 100755 --- a/PennMobile/GSR-Booking/Controllers/GSRController.swift +++ b/PennMobile/GSR-Booking/Controllers/GSRController.swift @@ -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})