forked from Kieran/snort
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) {
|
if (req.ok) {
|
||||||
let rsp = await req.json();
|
let rsp = await req.json();
|
||||||
if (rsp.ok) {
|
if (rsp.ok) {
|
||||||
return rsp;
|
return rsp.file;
|
||||||
} else {
|
} else {
|
||||||
throw rsp.errorMessage;
|
throw rsp.errorMessage;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user