Skip to content

Commit

Permalink
Merge pull request #708 from contember/fix/remove-random-outdated
Browse files Browse the repository at this point in the history
fix(interface): remove random false positive from useIsApplicationOutdated
  • Loading branch information
matej21 authored May 27, 2024
2 parents 4f76634 + 775ce9b commit 531ce33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/interface/src/hooks/useIsApplicationOutdated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const useIsApplicationOutdated = ({ checkIntervalMs = defaultCheckInterva
return
}
const version = await fetchVersion()
if (version !== initialVersion || Math.random() < 0.3) {
if (version !== initialVersion) {
setIsOutdated(true)
}
}, [fetchVersion, initialVersion])
Expand Down

0 comments on commit 531ce33

Please sign in to comment.