Skip to content

Commit 3320bfa

Browse files
committed
test(intro-screen-native): fix test
1 parent 8d38a54 commit 3320bfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/pluggableWidgets/intro-screen-native/src/SwipeableContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const SwipeableContainer = (props: SwipeableContainerProps): ReactElement
9090

9191
useEffect(() => {
9292
const slide = refreshActiveSlideAttribute(props.slides, props.activeSlide);
93-
if (width && props.activeSlide && props.activeSlide.status === ValueStatus.Available && slide !== activeIndex) {
93+
if (width && props.activeSlide?.status === ValueStatus.Available && slide !== activeIndex) {
9494
goToSlide(slide);
9595
}
9696
}, [props.activeSlide, activeIndex, width, props.slides, goToSlide]);

0 commit comments

Comments
 (0)