aboutsummaryrefslogtreecommitdiff
path: root/src/components/profile/Content.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/profile/Content.tsx')
-rw-r--r--src/components/profile/Content.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/profile/Content.tsx b/src/components/profile/Content.tsx
index a4e4198c..60f18cc2 100644
--- a/src/components/profile/Content.tsx
+++ b/src/components/profile/Content.tsx
@@ -38,6 +38,7 @@ import {
loadFriendsData,
updateUserXFriends,
updateMomentCategories,
+ deleteUserMomentsForCategory,
} from '../../store/actions';
import {
NO_USER,
@@ -137,7 +138,6 @@ const Content: React.FC<ContentProps> = ({y, userXId, screenType}) => {
map.set(moment_category, [imageObject]);
}
});
-
setImagesMap(map);
}, [moments]);
@@ -240,6 +240,7 @@ const Content: React.FC<ContentProps> = ({y, userXId, screenType}) => {
dispatch(
updateMomentCategories([category], false, loggedInUser.userId),
);
+ dispatch(deleteUserMomentsForCategory(category));
},
},
],