Merge pull request #664 from lethemanh/660-remove-owner-in-calendar-of-resource
#660 remove owner in calendar of resource
This commit is contained in:
@@ -15,7 +15,8 @@ export function CalendarName({ calendar }: { calendar: Calendar }) {
|
||||
const ownerId = calendar.id.split("/")[0];
|
||||
const ownerDisplayName = makeDisplayName(calendar) ?? "";
|
||||
const isOwnCalendar = userData.openpaasId === ownerId;
|
||||
const showCaption = calendar.name !== "#default" && !isOwnCalendar;
|
||||
const showCaption =
|
||||
calendar.name !== "#default" && !isOwnCalendar && !calendar.owner?.resource;
|
||||
|
||||
return (
|
||||
<Box
|
||||
|
||||
Reference in New Issue
Block a user