chore: make student eligibility return an error on missing access token
This commit is contained in:
1 parent
44450f407c
commit
909f33b044
1 file changed
+1
-1
@@ -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
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user