Skip to content

Commit

Permalink
fix: add check when accessing next descriptor (#9824)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdekoning authored Aug 17, 2021
1 parent 80a8567 commit 5bcf79c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/stack/src/views/Stack/CardStack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ export default class CardStack extends React.Component<Props, State> {
),
next:
nextGesture &&
nextDescriptor.options.presentation !== 'transparentModal'
nextDescriptor?.options.presentation !== 'transparentModal'
? getProgressFromGesture(
nextGesture,
state.layout,
Expand Down

0 comments on commit 5bcf79c

Please sign in to comment.