aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorAshm Walia <40498934+ashmgarv@users.noreply.github.com>2021-01-03 08:56:41 -0800
committerGitHub <noreply@github.com>2021-01-03 11:56:41 -0500
commit73d0580871b919d6b2f32b753dd04d48cc86fbea (patch)
tree527f58564d9f3ecc78b134c898e10e04ac545a9d /src/components
parentecd10fc394f2d2b6be08cee55f7b9a75ab276ac7 (diff)
[TMA - 459] - Fix for ghost image bug (#159)
* Fixed * Fix
Diffstat (limited to 'src/components')
-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));
},
},
],