Skip to content

Commit

Permalink
fix currentRoute for pop
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavlo Aksonov authored and Pavlo Aksonov committed Nov 25, 2015
1 parent e2f4ce1 commit b55ead3
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 35 deletions.
78 changes: 45 additions & 33 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@
],
"name": "react-native-redux-router",
"optionalDependencies": {},
"version": "1.0.2"
"version": "1.0.3"
}
2 changes: 1 addition & 1 deletion reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function reducer(state = { routes: [], currentRoute: null}, actio
return {
mode: DISMISS,
routes: [...state.routes.slice(0, state.routes.length - 1)],
currentRoute: state.routes[state.routes[state.routes.length - 2]]
currentRoute: state.routes[state.routes.length - 2]
};
case RESET:
return {
Expand Down

0 comments on commit b55ead3

Please sign in to comment.