Skip to content

Commit 7f2029c

Browse files
fix(client): age validate logic
1 parent e107e1e commit 7f2029c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bigbid-client/src/main/java/com/bigbid/client/controller/LoginController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ private void handleRegister() {
170170
return;
171171
}
172172

173-
if (LocalDate.now().minusYears(16).isAfter(dob)) {
173+
if (dob.minusYears(16).isAfter(LocalDate.now())) {
174174
AlertHelper.showWarning(
175175
"Age Requirement", "You must be at least 16 years old to register.");
176176
return;

0 commit comments

Comments
 (0)