Merge pull request #515 from medici/feat/tp-32780

add online check before stroring in db and remove all case details dependency
This commit is contained in:
Himanshu Kansal
2023-06-21 16:50:33 +05:30
committed by GitHub Enterprise
2 changed files with 1 additions and 7 deletions

View File

@@ -197,12 +197,6 @@ const Widget: React.FC<IWidget> = (props) => {
const onErrorSubmit = (updatedCaseDetails: any) => {
setIsSubmitting(false);
dispatch(
updateCaseDetail({
caseKey: caseKey.current,
updatedCaseDetails,
})
);
};
const handleSubmitJourney = async (data: any, coords: Geolocation.GeoCoordinates) => {

View File

@@ -80,7 +80,7 @@ const interactionsHandler = () => {
}
}
})();
}, [allCasesDetails, isOnline]);
}, [isOnline]);
useEffect(() => {
if (!isOnline) {