Skip to content

Commit 3846cd5

Browse files
committed
fix: avoid stuck feedback shake state
1 parent 9044b8b commit 3846cd5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/Swift/Integrations/UserFeedback/SentryUserFeedbackIntegrationDriver.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,14 @@ extension SentryUserFeedbackIntegrationDriver: UIAdaptivePresentationControllerD
120120
@available(iOSApplicationExtension, unavailable)
121121
private extension SentryUserFeedbackIntegrationDriver {
122122
func showForm(screenshot: UIImage?) {
123+
guard let presenter else {
124+
return
125+
}
123126
let form = SentryUserFeedbackFormController(config: configuration, delegate: self, screenshot: screenshot)
124127
form.presentationController?.delegate = self
125128
widget?.rootVC.setWidget(visible: false, animated: configuration.animations)
126129
displayingForm = true
127-
presenter?.present(form, animated: configuration.animations) {
130+
presenter.present(form, animated: configuration.animations) {
128131
self.configuration.onFormOpen?()
129132
}
130133
}

0 commit comments

Comments
 (0)