Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hj940709 committed Oct 3, 2024
1 parent 1b3c0a8 commit 6fac885
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions client/components/Toaster.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@ export default function Toaster() {
}, 5000)
saveInterval(progressCheckInterval)
}
else if (storyId !== null && progress === 1) {
dispatch(
getAllStories(learningLanguage, {
sort_by: 'date',
order: -1,
})
)
}
}, [storyId])

useEffect(() => {
Expand Down

0 comments on commit 6fac885

Please sign in to comment.