Fix profile image upload
This commit is contained in:
parent
29998370ab
commit
08112a0b3e
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user