1.3.7-4 - Prod Build - Updated sentry logging.
This commit is contained in:
@@ -27,6 +27,7 @@ import {
|
||||
} from "../../redux/user/user.selectors";
|
||||
import { formatBytes, handleUpload } from "../../util/document-upload.utility";
|
||||
import Toast from "react-native-toast-message";
|
||||
import * as Sentry from "sentry-expo";
|
||||
|
||||
const mapStateToProps = createStructuredSelector({
|
||||
currentUser: selectCurrentUser,
|
||||
@@ -112,7 +113,7 @@ export function UploadProgress({
|
||||
logImEXEvent("imexmobile_upload_documents_error", { error });
|
||||
Toast.show({
|
||||
type: "error",
|
||||
text1: "Unable to upload documents.",
|
||||
text1: "Unable to upload document.",
|
||||
text2: error,
|
||||
autoHide: false,
|
||||
});
|
||||
@@ -216,10 +217,16 @@ export function UploadProgress({
|
||||
);
|
||||
} catch (error) {
|
||||
console.log("Unable to delete picture.", error);
|
||||
Sentry.Native.captureException(error);
|
||||
}
|
||||
}
|
||||
filesToDelete = [];
|
||||
|
||||
Toast.show({
|
||||
type: "success",
|
||||
text1: ` Upload completed.`,
|
||||
//
|
||||
// text2: duration,
|
||||
});
|
||||
//Reset state.
|
||||
|
||||
setProgress({
|
||||
|
||||
Reference in New Issue
Block a user