Skip to content

Commit

Permalink
✨ disconnect eventsource for revealed story
Browse files Browse the repository at this point in the history
  • Loading branch information
haliphax committed Nov 26, 2024
1 parent 4da7578 commit cf6b633
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/front-end/app/store/story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ const story: Module<StoryState | Promise<StoryState>, StoreState> = {

console.log("Story", story);
ctx.commit("story", story);

if (story?.revealed) {
ctx.rootState.story.events?.close();
}
},
async "story.reveal"(ctx) {
const state = ctx.state as StoryState;
Expand Down

0 comments on commit cf6b633

Please sign in to comment.