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.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
||||||
|
if (!ownAccount) {
|
||||||
|
dispatch(openModal('UNAUTHORIZED'));
|
||||||
|
} else {
|
||||||
dispatch(openModal('EVENT_PARTICIPANTS', {
|
dispatch(openModal('EVENT_PARTICIPANTS', {
|
||||||
statusId: status.id,
|
statusId: status.id,
|
||||||
}));
|
}));
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in a new issue