From 13e9ab392bc95ca59dfe1cbf17d6e6d7f07b603d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Zugmeyer?= Date: Wed, 17 Jul 2024 18:48:03 +0200 Subject: [PATCH] Fix interaction count after bfcache restore --- src/lib/interactions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/interactions.ts b/src/lib/interactions.ts index 836a8c16..fbd07511 100644 --- a/src/lib/interactions.ts +++ b/src/lib/interactions.ts @@ -51,7 +51,7 @@ const getInteractionCountForNavigation = () => { }; export const resetInteractions = () => { - prevInteractionCount = 0; + prevInteractionCount = getInteractionCount(); longestInteractionList.length = 0; longestInteractionMap.clear(); };