@selfcommunity/react-ui 0.10.5-payments.199 → 0.10.5-payments.200

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.
@@ -126,11 +126,9 @@ function EventSubscribeButton(inProps) {
126
126
  const toggleEventAttendance = (0, react_1.useCallback)((eventStatus) => {
127
127
  setLoading(true);
128
128
  const _event = Object.assign(Object.assign({}, scEvent), { subscription_status: status });
129
- console.log('*** _event ***', _event);
130
129
  const isGoing = eventStatus === types_1.SCEventSubscriptionStatusType.GOING ||
131
130
  !(_event === null || _event === void 0 ? void 0 : _event.subscription_status) ||
132
131
  (_event === null || _event === void 0 ? void 0 : _event.subscription_status) === types_1.SCEventSubscriptionStatusType.INVITED;
133
- console.log('*** isGoing ***', isGoing);
134
132
  const toggleAction = isGoing ? scEventsManager.toggleEventAttendance(_event) : scEventsManager.toggleEventNonattendance(_event);
135
133
  toggleAction
136
134
  .then((data) => {
@@ -124,11 +124,9 @@ export default function EventSubscribeButton(inProps) {
124
124
  const toggleEventAttendance = useCallback((eventStatus) => {
125
125
  setLoading(true);
126
126
  const _event = Object.assign(Object.assign({}, scEvent), { subscription_status: status });
127
- console.log('*** _event ***', _event);
128
127
  const isGoing = eventStatus === SCEventSubscriptionStatusType.GOING ||
129
128
  !(_event === null || _event === void 0 ? void 0 : _event.subscription_status) ||
130
129
  (_event === null || _event === void 0 ? void 0 : _event.subscription_status) === SCEventSubscriptionStatusType.INVITED;
131
- console.log('*** isGoing ***', isGoing);
132
130
  const toggleAction = isGoing ? scEventsManager.toggleEventAttendance(_event) : scEventsManager.toggleEventNonattendance(_event);
133
131
  toggleAction
134
132
  .then((data) => {