Skip to content

Commit 6248f99

Browse files
fix(year): use 1900 as default
1 parent f77b4bd commit 6248f99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

front/src/components/film_modal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ pub fn FilmModal<'a>(cx: Scope<'a, FilmModalProps>) -> Element<'a> {
111111
value: "{draft_film.get().year.to_string()}",
112112
oninput: move |evt| {
113113
draft_film.set(Film {
114-
year: evt.value.clone().parse::<u16>().unwrap(),
114+
year: evt.value.clone().parse::<u16>().unwrap_or(1900),
115115
..draft_film.get().clone()
116116
})
117117
}

0 commit comments

Comments
 (0)