Skip to content

Commit

Permalink
Use let
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp committed Aug 4, 2023
1 parent 1c754aa commit 2a6a23a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/components/ViewTransitions.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 2a6a23a

Please sign in to comment.