Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 3 additions & 3 deletions packages/feedback/src/core/integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const buildFeedbackIntegration = ({
autoInject = true,
showEmail = true,
showName = true,
showScreenshot = true,
enableScreenshot = true,
useSentryUser = {
email: 'email',
name: 'username',
Expand Down Expand Up @@ -108,7 +108,7 @@ export const buildFeedbackIntegration = ({
isNameRequired,
showEmail,
showName,
showScreenshot,
enableScreenshot,
useSentryUser,

colorScheme,
Expand Down Expand Up @@ -176,7 +176,7 @@ export const buildFeedbackIntegration = ({
};

const _loadAndRenderDialog = async (options: FeedbackInternalOptions): Promise<FeedbackDialog> => {
const screenshotRequired = options.showScreenshot && isScreenshotSupported();
const screenshotRequired = options.enableScreenshot && isScreenshotSupported();
const [modalIntegration, screenshotIntegration] = await Promise.all([
_findIntegration<FeedbackModalIntegration>('FeedbackModal', getModalIntegration, 'feedbackModalIntegration'),
screenshotRequired
Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/feedback/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export interface FeedbackGeneralConfiguration {
* Should the screen shots field be included?
* Screen shots cannot be marked as required
*/
showScreenshot: boolean;
enableScreenshot: boolean;

/**
* Fill in email/name input fields with Sentry user context if it exists.
Expand Down