Skip to content

Commit

Permalink
fix: abstinence route
Browse files Browse the repository at this point in the history
  • Loading branch information
YoanRos committed Dec 21, 2023
1 parent 991aa4f commit 36a6efe
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion api/src/controllers/appMilestone.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ router.post(

// USER SURVEY:
if (req.headers.appversion < 205) return res.status(200).send({ ok: true });
if (req.headers.appversion >= 226) {
if (req.headers.appversion >= 229) {
const newUserAbstinenceFeature = await prisma.appMilestone.findUnique({
where: { id: `${user.id}_@NewUserAbstinenceFeature` },
});
Expand Down
2 changes: 1 addition & 1 deletion app/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled true
versionCode 228
versionCode 229
versionName "1.23.0"
}

Expand Down
2 changes: 1 addition & 1 deletion app/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "oz_ensemble",
"displayName": "Oz Ensemble",
"version": {
"buildNumber": 228,
"buildNumber": 229,

"buildName": "1.23.0"

Expand Down
4 changes: 2 additions & 2 deletions app/ios/oz_ensemble.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@
CODE_SIGN_ENTITLEMENTS = oz_ensemble/oz_ensemble.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 228;
CURRENT_PROJECT_VERSION = 229;
DEVELOPMENT_TEAM = 76GBKHVK25;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = oz_ensemble/Info.plist;
Expand Down Expand Up @@ -537,7 +537,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 228;
CURRENT_PROJECT_VERSION = 229;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 76GBKHVK25;
INFOPLIST_FILE = oz_ensemble/Info.plist;
Expand Down
2 changes: 1 addition & 1 deletion app/src/scenes/Gains/AbstinenceSelection.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { logEvent } from '../../services/logEventsWithMatomo';
import { storage } from '../../services/storage';

const AbstinenceSelection = ({ navigation, route }) => {
const isFromInfo = route?.name.includes('ABSTINENCE_SELECTION');
const isFromInfo = route?.params?.parent === 'Infos';
const onClose = () => {
navigation.goBack();
};
Expand Down
2 changes: 1 addition & 1 deletion app/src/scenes/Infos/Infos.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ const InfosMenu = ({ navigation }) => {
action: 'ABSTINENCE_OPEN',
name: 'INFOS',
});
navigation.navigate('ABSTINENCE_SELECTION');
navigation.navigate('ABSTINENCE_SELECTION', { parent: 'Infos' });
}}
/>
<View className="w-full border border-[#E8E8EA] mt-4 mb-4" />
Expand Down

0 comments on commit 36a6efe

Please sign in to comment.