Skip to content

Commit

Permalink
fix starting year bug (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
spanishpear authored Jan 30, 2022
1 parent 60f2c54 commit 39e2921
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/pages/signup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ const Signup = () => {
aria-describedby="Starting Year"
value={formData.starting_year}
onChange={(e) =>
setFormData({ ...formData, starting_year: e.target.value })
setFormData({
...formData,
starting_year: parseInt(e.target.value, 10),
})
}
/>

Expand Down

0 comments on commit 39e2921

Please sign in to comment.