Skip to content

Commit

Permalink
fix: non worklet function
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasFridmansky authored and Lipo11 committed Dec 8, 2023
1 parent 8c1384f commit dc0f88e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,9 @@ const StoryModal = forwardRef<StoryModalPublicMethods, StoryModalProps>( ( {

} else {

if ( e.translationY < -100 ) {
if ( e.translationY < -100 && onSwipeUp ) {

onSwipeUp?.(
runOnJS( onSwipeUp )(
stories[userIndex.value]?.id,
stories[userIndex.value]?.stories[storyIndex.value ?? 0]?.id,
);
Expand Down

0 comments on commit dc0f88e

Please sign in to comment.