TP-24568 | added else | Aman Singh

This commit is contained in:
aman.singh
2023-06-20 13:25:56 +05:30
parent 5d6622e1f7
commit abb6be95bf

View File

@@ -178,6 +178,10 @@ const TrackingComponent: React.FC<ITrackingComponent> = ({ children }) => {
if (isOnline) {
AppState.addEventListener('change', handleAppStateChange);
UnstoppableService.start(tasks);
} else {
if (UnstoppableService.isRunning()) {
UnstoppableService.stopAll();
}
}
}, [isOnline]);