Skip to content

Commit

Permalink
Fix version for andriod. Fixed sentry issues where 1) it was dispatch…
Browse files Browse the repository at this point in the history
…ing incorrectly and 2) check that route has name before dispatching action.
  • Loading branch information
coryzoon committed Oct 20, 2023
1 parent 545b9eb commit 5e12874
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ android {
applicationId "com.zooniversemobile"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 60
versionName "2.10.2"
versionCode 61
versionName "2.10.0"
}
signingConfigs {
debug {
Expand Down
2 changes: 1 addition & 1 deletion src/actions/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function setSession() {
})
.catch(() => {
stored = generateSessionID()
dispatch(storeSession(stored))
storeSession(stored)
dispatch(setState('session', stored))
});
};
Expand Down
5 changes: 4 additions & 1 deletion src/navigation/RootNavigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ const RootNavigator = () => {
ref={navRef}
onStateChange={() => {
const newRoute = navRef.getCurrentRoute();
dispatch(setPageShowing(newRoute.name));
// Make sure the newRoute has a name.
if (newRoute?.name) {
dispatch(setPageShowing(newRoute.name));
}
}}>
<DrawerNavigator />
</NavigationContainer>
Expand Down

0 comments on commit 5e12874

Please sign in to comment.