Skip to content
This repository was archived by the owner on Oct 12, 2025. It is now read-only.

Commit 5379d7c

Browse files
Stashing changes
1 parent d206868 commit 5379d7c

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

HackIllinois.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,7 +1380,7 @@
13801380
"$(inherited)",
13811381
"@executable_path/Frameworks",
13821382
);
1383-
MARKETING_VERSION = 2025.1.2;
1383+
MARKETING_VERSION = 2025.1.3;
13841384
ONLY_ACTIVE_ARCH = YES;
13851385
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" -Xfrontend -warn-long-expression-type-checking=150";
13861386
PRODUCT_BUNDLE_IDENTIFIER = org.hackillinois.ios;
@@ -1417,7 +1417,7 @@
14171417
"$(inherited)",
14181418
"@executable_path/Frameworks",
14191419
);
1420-
MARKETING_VERSION = 2025.1.2;
1420+
MARKETING_VERSION = 2025.1.3;
14211421
ONLY_ACTIVE_ARCH = YES;
14221422
PRODUCT_BUNDLE_IDENTIFIER = org.hackillinois.ios;
14231423
PRODUCT_NAME = "$(TARGET_NAME)";

HackIllinois/ViewControllers/HIScheduleViewController.swift

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,15 @@ extension HIScheduleViewController {
117117
}
118118

119119
func currentPredicate() -> NSPredicate {
120-
if onlyShifts {
121-
// Return a predicate that matches no events when in shifts view
122-
return NSPredicate(value: false)
123-
} else if onlyFavorites {
124-
let currentTabPredicate = dataStore[currentTab].predicate
125-
return NSCompoundPredicate(andPredicateWithSubpredicates: [currentTabPredicate, onlyFavoritesPredicate])
120+
let currentTabPredicate = dataStore[currentTab].predicate
121+
if onlyFavorites {
122+
let compoundPredicate = NSCompoundPredicate(andPredicateWithSubpredicates: [currentTabPredicate, onlyFavoritesPredicate])
123+
return compoundPredicate
124+
} else if onlyShifts {
125+
let noEventsPredicate = NSPredicate(value: false)
126+
return noEventsPredicate
126127
} else {
127-
return dataStore[currentTab].predicate
128+
return currentTabPredicate
128129
}
129130
}
130131

0 commit comments

Comments
 (0)