tek-wallet 0.0.449 → 0.0.450
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.
|
@@ -32,7 +32,7 @@ var prefix = "activities_";
|
|
|
32
32
|
function ActivitiesTypeSlice(props) {
|
|
33
33
|
var _a;
|
|
34
34
|
var theme = (0, material_1.useTheme)();
|
|
35
|
-
var _b = (0, useActivities_1.default)(), activities = _b.activities, updateActivities = _b.updateActivities;
|
|
35
|
+
var _b = (0, useActivities_1.default)(), activities = _b.activities, updateActivities = _b.updateActivities, isLoadingActivities = _b.isLoadingActivities;
|
|
36
36
|
var type = props.type, isActive = props.isActive;
|
|
37
37
|
var activitiesByType = (0, react_1.useMemo)(function () {
|
|
38
38
|
if (!(type === null || type === void 0 ? void 0 : type.slug))
|
|
@@ -47,11 +47,12 @@ function ActivitiesTypeSlice(props) {
|
|
|
47
47
|
return Status.Empty;
|
|
48
48
|
}, [type, activitiesByType]);
|
|
49
49
|
(0, react_1.useEffect)(function () {
|
|
50
|
-
if (!isActive ||
|
|
50
|
+
if (!isActive ||
|
|
51
|
+
!(type === null || type === void 0 ? void 0 : type.slug) ||
|
|
52
|
+
!!activitiesByType ||
|
|
53
|
+
isLoadingActivities[type.slug])
|
|
51
54
|
return;
|
|
52
|
-
|
|
53
|
-
return;
|
|
54
|
-
console.warn("🚀 ~ useEffect ~ type:", type);
|
|
55
|
+
console.warn("🚀 ~ useEffect ~ type:", type, activitiesByType);
|
|
55
56
|
updateActivities({
|
|
56
57
|
transaction_types: type.slug,
|
|
57
58
|
page: 1,
|