Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Pass the missing attachment parameter in the onSubmitSuccess
  • Loading branch information
antonis committed Feb 17, 2025
commit 797611f898676086b4e9f3570244cf8783245055
2 changes: 1 addition & 1 deletion packages/core/src/js/feedback/FeedbackWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class FeedbackWidget extends React.Component<FeedbackWidgetProps, Feedbac
try {
this.setState({ isVisible: false });
captureFeedback(userFeedback, attachments ? { attachments } : undefined);
onSubmitSuccess({ name: trimmedName, email: trimmedEmail, message: trimmedDescription, attachments: undefined });
onSubmitSuccess({ name: trimmedName, email: trimmedEmail, message: trimmedDescription, attachments: attachments });
Alert.alert(text.successMessageText);
onFormSubmitted();
FeedbackWidget._didSubmitForm = true;
Expand Down
Loading