Skip to content

Commit

Permalink
fix app updates not working in certain edge cases (#9900)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnshrm authored Jan 14, 2025
1 parent fe3a1e4 commit 4a5fdff
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/components/Common/UpdatableApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4a5fdff

Please sign in to comment.