@@ -6,10 +6,10 @@ function progressLoad() {
6
6
}
7
7
exports . progressLoad = progressLoad ;
8
8
function completePage ( ) {
9
- var position = store_1 . store . getState ( ) . position ;
10
- var pageLength = store_1 . store . getState ( ) . progress . chapters [ position . chapter ] . pages . length ;
9
+ var position = store_1 . default . getState ( ) . position ;
10
+ var pageLength = store_1 . default . getState ( ) . progress . chapters [ position . chapter ] . pages . length ;
11
11
if ( position . page >= pageLength - 1 ) {
12
- store_1 . store . dispatch ( completeChapter ( ) ) ;
12
+ store_1 . default . dispatch ( completeChapter ( ) ) ;
13
13
}
14
14
return {
15
15
payload :{ position :position } ,
@@ -18,10 +18,10 @@ function completePage() {
18
18
}
19
19
exports . completePage = completePage ;
20
20
function completeChapter ( ) {
21
- var chapter = store_1 . store . getState ( ) . position . chapter ;
22
- var chapterLength = store_1 . store . getState ( ) . progress . chapters . length ;
21
+ var chapter = store_1 . default . getState ( ) . position . chapter ;
22
+ var chapterLength = store_1 . default . getState ( ) . progress . chapters . length ;
23
23
if ( chapter >= chapterLength - 1 ) {
24
- store_1 . store . dispatch ( completeTutorial ( ) ) ;
24
+ store_1 . default . dispatch ( completeTutorial ( ) ) ;
25
25
}
26
26
return {
27
27
payload :{ chapter :chapter } ,