Skip to content

Commit 95bdf94

Browse files
committed
fix tutorial path name
1 parent 213b6dc commit 95bdf94

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/actions/actions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ function setPosition(position) {
2222
return { type: Type.SET_POSITION, payload: { position: position } };
2323
}
2424
exports.setPosition = setPosition;
25-
function loadTutorial(name) {
26-
package_1.default.selectPackage(name);
25+
function loadTutorial(tutorial) {
26+
package_1.default.selectPackage(tutorial.name);
2727
_base_1.store.dispatch(setProject());
2828
_base_1.store.dispatch(setPosition({ chapter: 0, page: 0 }));
2929
_base_1.store.dispatch(setProgress());

src/actions/actions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export function setPosition(position: CR.Position): CR.Action {
2525
return { type: Type.SET_POSITION, payload: { position } };
2626
}
2727

28-
export function loadTutorial(name: string): void {
29-
Package.selectPackage(name);
28+
export function loadTutorial(tutorial: CR.Tutorial): void {
29+
Package.selectPackage(tutorial.name);
3030
store.dispatch(setProject());
3131
store.dispatch(setPosition({chapter: 0, page: 0}));
3232
store.dispatch(setProgress());

0 commit comments

Comments
 (0)