removed console.log| Aman Singh

This commit is contained in:
aman.singh
2023-12-26 23:25:06 +05:30
parent 05c28bf002
commit 9b2bcb0e66

View File

@@ -75,7 +75,6 @@ const BlockerScreen = (props: IBlockerScreen) => {
React.useEffect(() => {
console.log("firebase updated", appUpdate)
if (!appUpdate) return;
const buildToCompare = GLOBAL.BUILD_FLAVOUR;
if (!buildToCompare) return;
@@ -85,18 +84,16 @@ const BlockerScreen = (props: IBlockerScreen) => {
}else {
flavorToUpdate = appUpdate?.telecallingAgents;
}
console.log("firebase updated :: flavor to update", flavorToUpdate, GLOBAL.BUILD_FLAVOUR.includes('fieldAgents'))
if (!flavorToUpdate) return;
const currentBuildNumber = getBuildVersion();
console.log("firebase updated", flavorToUpdate, {currentBuildNumber})
if (currentBuildNumber && currentBuildNumber < flavorToUpdate.buildNumber) {
setShouldUpdate(true);
} else {
setShouldUpdate(false);
}
}, [JSON.stringify(appUpdate || {})]);
}, [appUpdate]);
React.useEffect(() => {
const appStateChange = AppState.addEventListener('change', async (change) => {
@@ -131,8 +128,6 @@ const BlockerScreen = (props: IBlockerScreen) => {
}else {
appUpdateUrl = appUpdate?.telecallingAgents.currentProdAPK;
}
console.log({appUpdateUrl})
if (appUpdateUrl) {
openApkDownloadLink(appUpdateUrl);
}