From 39b9cf4eed096b398940ffba6d0f2449f4856363 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Tue, 6 Dec 2022 22:17:23 +0100 Subject: [PATCH] Show Unauthorized modal for 'X people going' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/features/event/components/event-header.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/soapbox/features/event/components/event-header.tsx b/app/soapbox/features/event/components/event-header.tsx index b38ca89592..0cb0fbe75c 100644 --- a/app/soapbox/features/event/components/event-header.tsx +++ b/app/soapbox/features/event/components/event-header.tsx @@ -329,9 +329,13 @@ const EventHeader: React.FC = ({ status }) => { e.preventDefault(); e.stopPropagation(); - dispatch(openModal('EVENT_PARTICIPANTS', { - statusId: status.id, - })); + if (!ownAccount) { + dispatch(openModal('UNAUTHORIZED')); + } else { + dispatch(openModal('EVENT_PARTICIPANTS', { + statusId: status.id, + })); + } }; return (