TP-35981 | fixes

This commit is contained in:
Aman Chaturvedi
2023-08-24 13:20:40 +05:30
parent 158126a026
commit 38633eea1b
3 changed files with 11 additions and 17 deletions

View File

@@ -32,9 +32,8 @@ import CodePush from 'react-native-code-push';
import { TDocumentObj } from './src/screens/caseDetails/interface';
import AuthRouter from './src/screens/auth/AuthRouter';
import { initSentry } from './src/components/utlis/sentry';
import { GLOBAL, setGlobalBuildConfig, setGlobalBuildFlavour } from './src/constants/Global';
import { setGlobalBuildConfig, setGlobalBuildFlavour } from './src/constants/Global';
import { getBuildFlavour, getBuildInfo } from './src/components/utlis/DeviceUtils';
import { get } from 'react-hook-form';
initSentry();

View File

@@ -124,16 +124,16 @@ const BlockerScreen = (props: IBlockerScreen) => {
);
}
// if (!isTimeSynced) {
// const { heading, instructions } = BLOCKER_SCREEN_DATA.TIME_UNSYNC;
// return (
// <BlockerInstructions
// heading={heading}
// instructions={instructions}
// actionBtn={{ title: 'Go to settings', action: handleOpenSettings }}
// />
// );
// }
if (!isTimeSynced) {
const { heading, instructions } = BLOCKER_SCREEN_DATA.TIME_UNSYNC;
return (
<BlockerInstructions
heading={heading}
instructions={instructions}
actionBtn={{ title: 'Go to settings', action: handleOpenSettings }}
/>
);
}
if (!isDeviceLocationEnabled) {
const { heading, instructions } = BLOCKER_SCREEN_DATA.DEVICE_LOCATION_OFF;

View File

@@ -221,11 +221,6 @@ const useFirestoreUpdates = () => {
const subscribeToAppUpdate = () => {
const collectionPath = 'app-state/app-update';
console.log(
'subscribeToAppUpdate',
collectionPath,
subscribeToDoc(handleAppUpdate, collectionPath)
);
return subscribeToDoc(handleAppUpdate, collectionPath);
};