From fc807553825d215c0e19f1cadabf12bc8c3a6415 Mon Sep 17 00:00:00 2001 From: yosuva Rajendran Date: Mon, 25 Nov 2024 13:28:53 +0530 Subject: [PATCH] Fix:New Member button missing in past events --- utils/irl.utils.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/utils/irl.utils.ts b/utils/irl.utils.ts index 25f48457..98fcdb56 100644 --- a/utils/irl.utils.ts +++ b/utils/irl.utils.ts @@ -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;