allow selectUserUpcomingMeetings to take null uuid inputs due to TeamState in usersSlice.tsx supporting null user inputs
This commit is contained in:
parent
ccb5719e4b
commit
3d0bd5c4d9
@ -55,8 +55,8 @@ export const selectMeeting = (state: RootState, meetingID: string | null) => {
|
|||||||
)
|
)
|
||||||
: null;
|
: null;
|
||||||
};
|
};
|
||||||
export const selectUserUpcomingMeetings = (state: RootState, uuid: string) => {
|
export const selectUserUpcomingMeetings = (state: RootState, uuid: string | null) => {
|
||||||
return state.meetingsAndUserStatuses.meetings.filter((meeting) =>
|
return uuid == null ? [] : state.meetingsAndUserStatuses.meetings.filter((meeting) =>
|
||||||
meeting.registrantIds.includes(uuid)
|
meeting.registrantIds.includes(uuid)
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user