Lint all the things
This commit is contained in:
@@ -15,7 +15,7 @@ export const handleUpload = async ({ ev, context, notification }) => {
|
||||
ims_token: bodyshop.localmediatoken
|
||||
},
|
||||
onUploadProgress: (e) => {
|
||||
if (!!onProgress) onProgress({ percent: (e.loaded / e.total) * 100 });
|
||||
if (onProgress) onProgress({ percent: (e.loaded / e.total) * 100 });
|
||||
}
|
||||
};
|
||||
|
||||
@@ -37,7 +37,7 @@ export const handleUpload = async ({ ev, context, notification }) => {
|
||||
);
|
||||
|
||||
if (imexMediaServerResponse.status !== 200) {
|
||||
if (!!onError) {
|
||||
if (onError) {
|
||||
onError(imexMediaServerResponse.statusText);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user