Skip to content

Commit

Permalink
fix(year): use 1900 as default
Browse files Browse the repository at this point in the history
  • Loading branch information
robertohuertasm committed Jun 25, 2023
1 parent f77b4bd commit 6248f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front/src/components/film_modal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ pub fn FilmModal<'a>(cx: Scope<'a, FilmModalProps>) -> Element<'a> {
value: "{draft_film.get().year.to_string()}",
oninput: move |evt| {
draft_film.set(Film {
year: evt.value.clone().parse::<u16>().unwrap(),
year: evt.value.clone().parse::<u16>().unwrap_or(1900),
..draft_film.get().clone()
})
}
Expand Down

0 comments on commit 6248f99

Please sign in to comment.