Show Unauthorized modal for 'X people going'

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2022-12-06 22:17:23 +01:00
parent 4448309adc
commit 39b9cf4eed

View file

@ -329,9 +329,13 @@ const EventHeader: React.FC<IEventHeader> = ({ 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 (