Skip to content

Commit

Permalink
Removing ?? operator
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgperry committed Feb 15, 2023
1 parent 0743f67 commit dbd1208
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ export function checkShouldInheritVariant({
variants,
inherit,
}: MotionProps): boolean {
return inherit ?? (!!variants && !animate)
return inherit !== undefined ? inherit : !!variants && !animate
}

0 comments on commit dbd1208

Please sign in to comment.