Skip to content
Snippets Groups Projects
Commit 733e8650 authored by marcantoinem's avatar marcantoinem
Browse files

fix: mobile error reporting

parent e13a0071
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,14 @@ pub fn OptionsForms() -> impl IntoView { ...@@ -26,7 +26,14 @@ pub fn OptionsForms() -> impl IntoView {
async move {} async move {}
}); });
let submit_mobile = move |_| state.generate(); let submit_mobile = move |_| {
state.validate();
if state.step.get() < 5 {
state.hide.set(true);
return;
}
state.generate();
};
view! { view! {
<CoursesSelector state=state submit/> <CoursesSelector state=state submit/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment