Skip to content

Commit 39a5a1e

Browse files
authored
Fix the is13 check in account creation (close #2258) (#2259)
1 parent 238ff58 commit 39a5a1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/view/com/auth/create/state.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export async function submit({
144144
}
145145

146146
export function is13(state: CreateAccountState) {
147-
return getAge(state.birthDate) >= 18
147+
return getAge(state.birthDate) >= 13
148148
}
149149

150150
export function is18(state: CreateAccountState) {

0 commit comments

Comments
 (0)