Skip to content

Commit

Permalink
Fix:New Member button missing in past events
Browse files Browse the repository at this point in the history
  • Loading branch information
yosuva-rajendran authored and navneethkrish committed Nov 26, 2024
1 parent c7030c3 commit fc80755
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions utils/irl.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,7 @@ export const transformGuestDetail = (result: any) => {
};

export function checkAdminInAllEvents(searchType: any, upcomingEvents: any, pastEvents: any) {
if (!searchType) {
return false;
} else if (searchType === 'upcoming' || (upcomingEvents && upcomingEvents.length > 0 && pastEvents && pastEvents.length === 0)) {
if (searchType === 'upcoming' || (upcomingEvents && upcomingEvents.length > 0 && pastEvents && pastEvents.length === 0)) {
return true;
} else if (searchType === 'past' || (pastEvents && pastEvents.length > 0 && upcomingEvents && upcomingEvents.length === 0)) {
return true;
Expand Down

0 comments on commit fc80755

Please sign in to comment.