Skip to content

Commit

Permalink
chore: optimise show arrow condition
Browse files Browse the repository at this point in the history
  • Loading branch information
charmi-v committed Aug 30, 2024
1 parent 3266c95 commit c881899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/basic/Carousel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const Carousel = ({
}: CarouselProps) => {
const [showArrows, setShowArrows] = useState(false)
const onMouseEnter = () => {
setShowArrows(true && arrayChildren.length > 1)
setShowArrows(arrayChildren.length > 1)
}
const onMouseLeave = () => {
setShowArrows(false)
Expand Down

0 comments on commit c881899

Please sign in to comment.