Skip to content

Commit

Permalink
feat: change minimum age to 12 (#635)
Browse files Browse the repository at this point in the history
Co-authored-by: Dunsin <[email protected]>
  • Loading branch information
DanonymousCoder and Dun-sin authored Aug 11, 2024
1 parent 71dd0ba commit 2afd748
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/pages/Profile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ const Profile = () => {
placeholder="19"
className="outline-none bg-transparent text-right"
ref={ageRef}
min="1"
min="12"
onChange={(e) => {
if (e.target.value < 1) {
e.target.value = '1';
if (e.target.value < 12) {
e.target.value = '12';
}
}}
/>
Expand Down

0 comments on commit 2afd748

Please sign in to comment.