From 2a6a23aee2206c84f05fdf32eb94f7d52b3c8f1a Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Fri, 4 Aug 2023 07:23:00 -0400 Subject: [PATCH] Use let --- packages/astro/components/ViewTransitions.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/astro/components/ViewTransitions.astro b/packages/astro/components/ViewTransitions.astro index 7f4a6098865a..4f43171f977b 100644 --- a/packages/astro/components/ViewTransitions.astro +++ b/packages/astro/components/ViewTransitions.astro @@ -179,7 +179,7 @@ const { fallback = 'animate' } = Astro.props as Props; // If there are no animations, go ahead and swap on next tick // This is necessary because we do not know if there are animations. // The setTimeout is a fallback in case there are none. - var timeout = setTimeout(() => !isAnimating && fallbackSwap()); + let timeout = setTimeout(() => !isAnimating && fallbackSwap()); } else { swap(); }