Close story viewer when DOE a story

This commit is contained in:
Josh Perez
2023-01-27 12:35:58 -05:00
committed by GitHub
parent a88778b536
commit 6a80b4b837

View File

@@ -1625,6 +1625,7 @@ export function reducer(
if (action.type === DOE_STORY) {
return {
...state,
selectedStoryData: undefined,
stories: state.stories.filter(
existingStory => existingStory.messageId !== action.payload
),