TP-24568 | unused variables | Aman Singh
This commit is contained in:
@@ -37,14 +37,12 @@ interface ITrackingComponent {
|
||||
children?: ReactNode;
|
||||
}
|
||||
|
||||
let MAX_BG_TRACKING_WINDOW = 1000 * 60 * 30; //30 mins;
|
||||
let LAST_SYNC_STATUS = 'SKIP';
|
||||
|
||||
const TrackingComponent: React.FC<ITrackingComponent> = ({ children }) => {
|
||||
const isOnline = useIsOnline();
|
||||
const dispatch = useAppDispatch();
|
||||
const appState = useRef(AppState.currentState);
|
||||
const bgTrackingTimeoutId = useRef<number>();
|
||||
const user = useAppSelector((state) => state.user);
|
||||
|
||||
const {
|
||||
@@ -172,9 +170,6 @@ const TrackingComponent: React.FC<ITrackingComponent> = ({ children }) => {
|
||||
if (!UnstoppableService.isRunning()) {
|
||||
UnstoppableService.start(tasks);
|
||||
}
|
||||
if (bgTrackingTimeoutId.current) {
|
||||
clearTimeout(bgTrackingTimeoutId.current);
|
||||
}
|
||||
}
|
||||
appState.current = nextAppState;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user