Fix profile image upload

This commit is contained in:
Kieran 2023-01-03 11:09:01 +00:00
parent 29998370ab
commit 08112a0b3e
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -25,7 +25,7 @@ export default async function VoidUpload(file) {
if (req.ok) {
let rsp = await req.json();
if (rsp.ok) {
return rsp;
return rsp.file;
} else {
throw rsp.errorMessage;
}