@selfcommunity/react-ui 0.10.5-payments.198 → 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.
|
@@ -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) {
|
|
@@ -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) {
|