Skip to content

Commit

Permalink
Avoid running the css function when unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Dec 13, 2023
1 parent 163c875 commit 6599008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/navigator/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const navigatorScreenAnimation = ( {
isRTL,
}: NavigatorScreenAnimationProps ) => {
if ( isInitial && ! isBack ) {
return css``;
return;
}

const animationName =
Expand Down

0 comments on commit 6599008

Please sign in to comment.