From 4a5fdff1f17d8ac397496532b9c6781321f716d4 Mon Sep 17 00:00:00 2001 From: Aman Sharma <88098873+mnshrm@users.noreply.github.com> Date: Tue, 14 Jan 2025 11:46:48 +0530 Subject: [PATCH] fix app updates not working in certain edge cases (#9900) --- src/components/Common/UpdatableApp.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/components/Common/UpdatableApp.tsx b/src/components/Common/UpdatableApp.tsx index c623c2c10a3..814779a99d3 100644 --- a/src/components/Common/UpdatableApp.tsx +++ b/src/components/Common/UpdatableApp.tsx @@ -36,11 +36,6 @@ export const checkForUpdate = async () => { const meta = await res.json(); - if (appVersion === null) { - // Skip updating since the app potentially is the latest version. - localStorage.setItem(APP_VERSION_KEY, meta.version); - } - if (appVersion !== meta.version) { // Trigger an update if key: 'app-version' not present in localStorage // or does not match with metaVersion.