MCPcopy Create free account
hub / github.com/codecombat/codecombat / resetTutorial

Function resetTutorial

app/core/store/modules/game.js:88–96  ·  view source on GitHub ↗
(state, options)

Source from the content-addressed store, hash-verified

86 }
87 },
88 resetTutorial (state, options) {
89 if (options == null) { options = {} }
90 state.tutorialActive = false
91 if (options.keepIntro && (state.tutorial[0] != null ? state.tutorial[0].intro : undefined)) {
92 state.tutorial = [state.tutorial[0]]
93 } else {
94 state.tutorial = []
95 }
96 },
97 setTutorialActive (state, tutorialActive) {
98 state.tutorialActive = tutorialActive
99 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected