From d5d6b6c5cff095fb39bf2fff24445451b25bd53b Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 5 Nov 2020 20:03:24 +0100 Subject: read the transcript at end of first section --- animism-align/frontend/app/views/viewer/viewer.actions.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'animism-align/frontend/app/views/viewer/viewer.actions.js') diff --git a/animism-align/frontend/app/views/viewer/viewer.actions.js b/animism-align/frontend/app/views/viewer/viewer.actions.js index 449d224..e35567d 100644 --- a/animism-align/frontend/app/views/viewer/viewer.actions.js +++ b/animism-align/frontend/app/views/viewer/viewer.actions.js @@ -293,8 +293,12 @@ export const showCredits = () => dispatch => { export const reachedEndOfSection = currentSection => dispatch => { actions.audio.pause() dispatch({ type: types.viewer.reached_end_of_section }) - if (currentSection && currentSection.index === 0) { - actions.viewer.openGrowl(GROWL.REACHED_END_OF_FIRST_SECTION) + if (currentSection) { + // reached end of first section + if (currentSection.index === 0) { + actions.viewer.openGrowl(GROWL.REACHED_END_OF_FIRST_SECTION) + } + // reached end of last section } } -- cgit v1.2.3-70-g09d2