@@ -6,10 +6,10 @@ function progressLoad() {
66}
77exports . progressLoad = progressLoad ;
88function 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 ;
1111if ( position . page >= pageLength - 1 ) {
12- store_1 . store . dispatch ( completeChapter ( ) ) ;
12+ store_1 . default . dispatch ( completeChapter ( ) ) ;
1313}
1414return {
1515payload :{ position :position } ,
@@ -18,10 +18,10 @@ function completePage() {
1818}
1919exports . completePage = completePage ;
2020function 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 ;
2323if ( chapter >= chapterLength - 1 ) {
24- store_1 . store . dispatch ( completeTutorial ( ) ) ;
24+ store_1 . default . dispatch ( completeTutorial ( ) ) ;
2525}
2626return {
2727payload :{ chapter :chapter } ,