Show Unauthorized modal for 'X people going'
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
4448309adc
commit
39b9cf4eed
1 changed files with 7 additions and 3 deletions
|
@ -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 (
|
||||
|
|
Loading…
Reference in a new issue