@selfcommunity/react-ui 0.10.5-payments.197 → 0.10.5-payments.199
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.
- package/lib/cjs/components/CourseForm/CourseForm.js +1 -1
- package/lib/cjs/components/EventForm/EventForm.js +1 -1
- package/lib/cjs/components/EventSubscribeButton/EventSubscribeButton.js +1 -1
- package/lib/cjs/components/GroupForm/GroupForm.js +1 -1
- package/lib/esm/components/CourseForm/CourseForm.js +1 -1
- package/lib/esm/components/EventForm/EventForm.js +1 -1
- package/lib/esm/components/EventSubscribeButton/EventSubscribeButton.js +1 -1
- package/lib/esm/components/GroupForm/GroupForm.js +1 -1
- package/lib/umd/react-ui.js +1 -1
- package/package.json +8 -8
|
@@ -214,7 +214,7 @@ function CourseForm(inProps) {
|
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
if (field.products.length && field.contentAccessType === constants_2.ContentAccessType.PAID && (isStaff || (course && ((_a = course.paywalls) === null || _a === void 0 ? void 0 : _a.length)))) {
|
|
217
|
-
formData.append(`products`, field.products
|
|
217
|
+
formData.append(`products`, JSON.stringify(field.products));
|
|
218
218
|
}
|
|
219
219
|
else {
|
|
220
220
|
formData.append(`products`, '[]');
|
|
@@ -264,7 +264,7 @@ function EventForm(inProps) {
|
|
|
264
264
|
formData.append('visible', 'true');
|
|
265
265
|
}
|
|
266
266
|
if (field.products.length && field.contentAccessType === constants_3.ContentAccessType.PAID && (isStaff || (event && ((_a = event.paywalls) === null || _a === void 0 ? void 0 : _a.length)))) {
|
|
267
|
-
formData.append(`products`, field.products
|
|
267
|
+
formData.append(`products`, JSON.stringify(field.products));
|
|
268
268
|
}
|
|
269
269
|
else {
|
|
270
270
|
formData.append(`products`, '[]');
|
|
@@ -141,7 +141,7 @@ function EventSubscribeButton(inProps) {
|
|
|
141
141
|
.catch((e) => {
|
|
142
142
|
utils_1.Logger.error(Errors_1.SCOPE_SC_UI, e);
|
|
143
143
|
});
|
|
144
|
-
}, [scEvent, scEventsManager, onSubscribe, setLoading]);
|
|
144
|
+
}, [scEvent, scEventsManager, status, onSubscribe, setLoading]);
|
|
145
145
|
const handleToggleAction = (0, react_1.useCallback)((event) => {
|
|
146
146
|
setAnchorEl(null);
|
|
147
147
|
if (!scUserContext.user) {
|
|
@@ -193,7 +193,7 @@ function GroupForm(inProps) {
|
|
|
193
193
|
formData.append('emotional_image_original', field.emotionalImageOriginalFile);
|
|
194
194
|
}
|
|
195
195
|
if (field.products.length && field.contentAccessType === constants_2.ContentAccessType.PAID && (isStaff || (group && ((_a = group.paywalls) === null || _a === void 0 ? void 0 : _a.length)))) {
|
|
196
|
-
formData.append(`products`, field.products
|
|
196
|
+
formData.append(`products`, JSON.stringify(field.products));
|
|
197
197
|
}
|
|
198
198
|
else {
|
|
199
199
|
formData.append(`products`, '[]');
|
|
@@ -212,7 +212,7 @@ export default function CourseForm(inProps) {
|
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
if (field.products.length && field.contentAccessType === ContentAccessType.PAID && (isStaff || (course && ((_a = course.paywalls) === null || _a === void 0 ? void 0 : _a.length)))) {
|
|
215
|
-
formData.append(`products`, field.products
|
|
215
|
+
formData.append(`products`, JSON.stringify(field.products));
|
|
216
216
|
}
|
|
217
217
|
else {
|
|
218
218
|
formData.append(`products`, '[]');
|
|
@@ -262,7 +262,7 @@ export default function EventForm(inProps) {
|
|
|
262
262
|
formData.append('visible', 'true');
|
|
263
263
|
}
|
|
264
264
|
if (field.products.length && field.contentAccessType === ContentAccessType.PAID && (isStaff || (event && ((_a = event.paywalls) === null || _a === void 0 ? void 0 : _a.length)))) {
|
|
265
|
-
formData.append(`products`, field.products
|
|
265
|
+
formData.append(`products`, JSON.stringify(field.products));
|
|
266
266
|
}
|
|
267
267
|
else {
|
|
268
268
|
formData.append(`products`, '[]');
|
|
@@ -139,7 +139,7 @@ export default function EventSubscribeButton(inProps) {
|
|
|
139
139
|
.catch((e) => {
|
|
140
140
|
Logger.error(SCOPE_SC_UI, e);
|
|
141
141
|
});
|
|
142
|
-
}, [scEvent, scEventsManager, onSubscribe, setLoading]);
|
|
142
|
+
}, [scEvent, scEventsManager, status, onSubscribe, setLoading]);
|
|
143
143
|
const handleToggleAction = useCallback((event) => {
|
|
144
144
|
setAnchorEl(null);
|
|
145
145
|
if (!scUserContext.user) {
|
|
@@ -191,7 +191,7 @@ export default function GroupForm(inProps) {
|
|
|
191
191
|
formData.append('emotional_image_original', field.emotionalImageOriginalFile);
|
|
192
192
|
}
|
|
193
193
|
if (field.products.length && field.contentAccessType === ContentAccessType.PAID && (isStaff || (group && ((_a = group.paywalls) === null || _a === void 0 ? void 0 : _a.length)))) {
|
|
194
|
-
formData.append(`products`, field.products
|
|
194
|
+
formData.append(`products`, JSON.stringify(field.products));
|
|
195
195
|
}
|
|
196
196
|
else {
|
|
197
197
|
formData.append(`products`, '[]');
|