From 73d0580871b919d6b2f32b753dd04d48cc86fbea Mon Sep 17 00:00:00 2001 From: Ashm Walia <40498934+ashmgarv@users.noreply.github.com> Date: Sun, 3 Jan 2021 08:56:41 -0800 Subject: [TMA - 459] - Fix for ghost image bug (#159) * Fixed * Fix --- src/components/profile/Content.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/components') 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 = ({y, userXId, screenType}) => { map.set(moment_category, [imageObject]); } }); - setImagesMap(map); }, [moments]); @@ -240,6 +240,7 @@ const Content: React.FC = ({y, userXId, screenType}) => { dispatch( updateMomentCategories([category], false, loggedInUser.userId), ); + dispatch(deleteUserMomentsForCategory(category)); }, }, ], -- cgit v1.2.3-70-g09d2