From 775ce9b968fd00eadecae9b2a232570d2dceafbe Mon Sep 17 00:00:00 2001 From: Tomas Langer Date: Mon, 27 May 2024 12:00:44 +0200 Subject: [PATCH] fix(interface): remove random false positive from useIsApplicationOutdated --- packages/interface/src/hooks/useIsApplicationOutdated.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/interface/src/hooks/useIsApplicationOutdated.ts b/packages/interface/src/hooks/useIsApplicationOutdated.ts index a979bf05e..64556be22 100644 --- a/packages/interface/src/hooks/useIsApplicationOutdated.ts +++ b/packages/interface/src/hooks/useIsApplicationOutdated.ts @@ -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])