@@ -386,6 +386,7 @@ export default function HomeScreen() {
386
386
const { data, isLoading, isFetched, isError, error } =
387
387
api . scouting . getAssignments . useQuery ( {
388
388
event : "2024urmom" ,
389
+ assignee : session ?. user ?. id ,
389
390
} ) ;
390
391
// biome-ignore lint/style/noNonNullAssertion: <explanation>
391
392
const matchScoutAssignments = data ! ;
@@ -405,12 +406,12 @@ export default function HomeScreen() {
405
406
: [ ] ,
406
407
[ matchScoutAssignments , val ] ,
407
408
) ;
408
- const filteredByAssigned = useMemo ( ( ) => {
409
- return filteredByEvent ?. filter (
410
- // I'm relying on short-circuiting here for type safety lol
411
- ( x ) => x ?. assignee == null || x . assignee === session ?. user ?. id ,
412
- ) ;
413
- } , [ filteredByEvent , session ] ) ;
409
+ // const filteredByAssigned = useMemo(() => {
410
+ // return filteredByEvent?.filter(
411
+ // // I'm relying on short-circuiting here for type safety lol
412
+ // (x) => x?.assignee == null || x.assignee === session?.user?.id,
413
+ // );
414
+ // }, [filteredByEvent, session]);
414
415
415
416
return (
416
417
< SafeAreaView className = "bg-zinc-900" >
@@ -458,7 +459,7 @@ export default function HomeScreen() {
458
459
setVal = { setVal }
459
460
/>
460
461
< FlashList
461
- data = { filteredByAssigned }
462
+ data = { filteredByEvent }
462
463
estimatedItemSize = { 20 }
463
464
ItemSeparatorComponent = { ( ) => < View className = "h-2" /> }
464
465
renderItem = { ( p ) => < MatchScoutAssignment assignment = { p . item } /> }
0 commit comments