Minor cleanup.
This commit is contained in:
@@ -2,7 +2,7 @@ import axios from "axios";
|
||||
import { store } from "../redux/store";
|
||||
import mime from "mime";
|
||||
import * as MediaLibrary from "expo-media-library";
|
||||
import * as Sentry from '@sentry/react-native';
|
||||
import * as Sentry from "@sentry/react-native";
|
||||
|
||||
axios.interceptors.request.use(
|
||||
function (config) {
|
||||
@@ -45,8 +45,9 @@ export const handleLocalUpload = async ({
|
||||
ims_token: bodyshop.localmediatoken,
|
||||
},
|
||||
onUploadProgress: (e) => {
|
||||
if (onProgress)
|
||||
if (onProgress) {
|
||||
onProgress({ percent: e.loaded / e.total, loaded: e.loaded });
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user