diff --git a/app/assets/javascripts/discourse/app/modifiers/swipe.js b/app/assets/javascripts/discourse/app/modifiers/swipe.js index 92e8c45c291..01227191c63 100644 --- a/app/assets/javascripts/discourse/app/modifiers/swipe.js +++ b/app/assets/javascripts/discourse/app/modifiers/swipe.js @@ -135,7 +135,7 @@ export default class SwipeModifier extends Modifier { enableBodyScroll(this.element); } - this.onDidCancelSwipe?.(event.detail); + this.onDidCancelSwipeCallback?.(event.detail); } /**