Skip to content

Commit fe6196e

Browse files
committed
netpyne-138 Fix issue with stop tutorial
1 parent 74d640c commit fe6196e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

webapp/components/general/TutorialBubble.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ const TutorialBubble = ({
111111
};
112112

113113
const stop = (event) => {
114-
stopTutorial(event);
115114
tutorialTarget.current = null;
115+
stopTutorial(event);
116116
};
117117

118118
if (currentTourStep === requestedTourStep) {

webapp/redux/reducers/tutorial.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default (state = TUTORIAL_DEFAULT_STATE, action) => {
1818
case START_TUTORIAL:
1919
return {...state, tourRunning: true, requestedTourStep: 1, steps: action.payload }
2020
case STOP_TUTORIAL:
21-
return {...state, tourRunning: false }
21+
return {...state, tourRunning: false, tourStep: 0 }
2222
case INCREMENT_TUTORIAL_STEP:
2323
return {...state, requestedTourStep: state.tourStep + 1 }
2424
case RUN_CONTROLLED_STEP:

0 commit comments

Comments
 (0)