From bab6cdae281c2cb8a1ca8389308551bf19e30d5e Mon Sep 17 00:00:00 2001 From: Lucas Vas Date: Fri, 16 Jan 2026 21:27:49 -0500 Subject: [PATCH] chore: small reorganization to help error appearances --- src/pages/scholarship_info.rs | 54 +++++++++++++++++------------------ 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/src/pages/scholarship_info.rs b/src/pages/scholarship_info.rs index 1417bbb..80bad49 100644 --- a/src/pages/scholarship_info.rs +++ b/src/pages/scholarship_info.rs @@ -541,19 +541,19 @@ fn ScholarshipForm( } > - - {move || { - scholarship_info - .get() - .map(|res_scholarship| { - match res_scholarship { - Ok(_) => { - Either::Left( - view! { + {move || { + scholarship_info + .get() + .map(|res_scholarship| { + match res_scholarship { + Ok(_) => { + Either::Left( + view! { + - }, - ) - } - Err(err) => { - Either::Right( - view! { -

"Error while getting scholarship: "{err.to_string()}

- }, - ) - } +
+ }, + ) } - }) - .collect_view() - }} -
+ Err(err) => { + Either::Right( + view! { +

"Error while getting scholarship: "{err.to_string()}

+ }, + ) + } + } + }) + .collect_view() + }}