TP-24568 | added else | Aman Singh
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user