Merge pull request #76 from R15-Software-Dev/chore/api-err-return
Make student eligibility return an error
This commit was merged in pull request #76.
This commit is contained in:
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