chore: make student eligibility return an error on missing access token

This commit is contained in:
alphafetus committed 2026-03-25 13:41:10 -04:00
1 parent 44450f407c
commit 909f33b044
1 file changed
+1 -1
+1 -1
View File
@@ -146,7 +146,7 @@ pub fn StudentEligibilityPage() -> impl IntoView {
),
async move |(access_token, form_id, scholarship_id)| {
let Some(access_token) = access_token else {
return Ok(Vec::new());
return Err(ServerFnError::new("Couldn't find access token"));
};
list_files(access_token, form_id, scholarship_id).await
},