From 131310bfb84d9d5da76513f5d1f750ac7484d82d Mon Sep 17 00:00:00 2001 From: Robert Brands Date: Sat, 16 Sep 2023 13:55:50 +0200 Subject: [PATCH] Co-handling improved (#130) Co-authored-by: Robert Brands (RiwaAdmin) --- MeetUpPlanner/Client/Pages/Calendar.razor | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MeetUpPlanner/Client/Pages/Calendar.razor b/MeetUpPlanner/Client/Pages/Calendar.razor index a476e32..2f9ef5e 100644 --- a/MeetUpPlanner/Client/Pages/Calendar.razor +++ b/MeetUpPlanner/Client/Pages/Calendar.razor @@ -540,7 +540,8 @@ } protected bool CheckIfCoGuideIsWanted(ExtendedCalendarItem calendarItem) { - return (KeywordCheck.IsUser && calendarItem.MaxCoGuidesCount > 0); + Participant registered = calendarItem.FindParticipant(AppStateStore.FirstName, AppStateStore.LastName); + return (KeywordCheck.IsUser && calendarItem.MaxCoGuidesCount > 0 && (null == registered || !registered.IsCoGuide)); } protected bool CheckIfUserIsHost(ExtendedCalendarItem calendarItem) {