@selfcommunity/react-ui 0.9.0-alpha.15 → 0.9.0-alpha.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -100,7 +100,7 @@ function EventHeader(inProps) {
100
100
  setSCEvent(Object.assign({}, scEvent, { subscription_status: status }));
101
101
  };
102
102
  // RENDER
103
- if (!scEvent) {
103
+ if (!(scEvent && scUserContext.user)) {
104
104
  return (0, jsx_runtime_1.jsx)(Skeleton_1.default, {});
105
105
  }
106
106
  const _backgroundCover = Object.assign({}, (scEvent.image_bigger
@@ -98,7 +98,7 @@ export default function EventHeader(inProps) {
98
98
  setSCEvent(Object.assign({}, scEvent, { subscription_status: status }));
99
99
  };
100
100
  // RENDER
101
- if (!scEvent) {
101
+ if (!(scEvent && scUserContext.user)) {
102
102
  return _jsx(EventHeaderSkeleton, {});
103
103
  }
104
104
  const _backgroundCover = Object.assign({}, (scEvent.image_bigger