Minor cleanup.

This commit is contained in:
Patrick Fic
2025-02-28 10:15:34 -08:00
parent 023de62244
commit ca93c0900c
5 changed files with 22 additions and 27 deletions

View File

@@ -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 });
}
},
};