Skip to content

Commit 11e260d

Browse files
committed
fix: waiting verification
1 parent 3960317 commit 11e260d

File tree

14 files changed

+185
-223
lines changed

14 files changed

+185
-223
lines changed

backend/src/entities/user/user.entity.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,6 @@ export class User
223223

224224
@BeforeInsert()
225225
beforeInsert() {
226-
this.verificationStatus =
227-
this.approachChoice === EApproachChoice.APPROACH
228-
? EVerificationStatus.PENDING
229-
: EVerificationStatus.NOT_NEEDED;
226+
this.verificationStatus = EVerificationStatus.PENDING;
230227
}
231228
}

backend/src/types/user.types.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ export enum ELanguage {
2929
export enum EVerificationStatus {
3030
VERIFIED = "verified",
3131
PENDING = "pending",
32-
/** @dev Not needed if not approaching right now (e.g. women) */
33-
NOT_NEEDED = "not_needed",
3432
}
3533

3634
/** @dev Dedicated Enum for email verification for separation of concerns */

backend/swagger.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

mobile/.storybook/state.mocks.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const storybookMockUserData: IUserData = {
2424
clearPassword: "",
2525
birthDay: new Date(1990, 1, 1),
2626
imageURIs: {},
27-
verificationStatus: UserPrivateDTOVerificationStatusEnum.not_needed,
27+
verificationStatus: UserPrivateDTOVerificationStatusEnum.verified,
2828
approachChoice: UserPrivateDTOApproachChoiceEnum.both,
2929
blacklistedRegions: [],
3030
approachFromTime: new Date(),
@@ -93,7 +93,7 @@ export const StoryBookContextWrapper = ({
9393
>
9494
<EncountersContext.Provider
9595
value={{
96-
state: { encounters: [] },
96+
state: { encounters: [], isWalkthroughRunning: false },
9797
dispatch: mockEncountersDispatch,
9898
}}
9999
>

mobile/AppRoot.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,7 @@ export default function App() {
154154
}}
155155
>
156156
<MainStack.Navigator
157-
initialRouteName={
158-
ROUTES.Onboarding.SafetyCheck
159-
}
157+
initialRouteName={initialComponent}
160158
screenOptions={NO_HEADER}
161159
>
162160
<MainStack.Screen

mobile/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,6 @@ NOTE: EAS Builds might not work anymore as of 26 December 2024 as EAS worker ins
4242
3. Submit to App stores `eas submit --path ... --platform ios --profile production`
4343

4444
## Debugging
45-
To debug WebView issues on Android you can use this command:
46-
`adb logcat | grep -i chromium`
45+
46+
To debug WebView issues on Android you can use this command:
47+
`adb logcat | grep -i chromium`

mobile/api/gen/src/models/UpdateUserVerificationstatusDTO.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export interface UpdateUserVerificationstatusDTO {
3838
export const UpdateUserVerificationstatusDTONewVerificationStatusEnum = {
3939
verified: "verified",
4040
pending: "pending",
41-
not_needed: "not_needed",
4241
} as const;
4342
export type UpdateUserVerificationstatusDTONewVerificationStatusEnum =
4443
(typeof UpdateUserVerificationstatusDTONewVerificationStatusEnum)[keyof typeof UpdateUserVerificationstatusDTONewVerificationStatusEnum];

mobile/api/gen/src/models/UserPrivateDTO.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ export type UserPrivateDTODateModeEnum =
180180
export const UserPrivateDTOVerificationStatusEnum = {
181181
verified: "verified",
182182
pending: "pending",
183-
not_needed: "not_needed",
184183
} as const;
185184
export type UserPrivateDTOVerificationStatusEnum =
186185
(typeof UserPrivateDTOVerificationStatusEnum)[keyof typeof UserPrivateDTOVerificationStatusEnum];

0 commit comments

Comments
 (0)