Skip to content

Commit f88ddde

Browse files
committed
debug build
1 parent f25a28c commit f88ddde

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/feedback/src/util/handleFeedbackSubmit.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import type { FeedbackFormData, SendFeedbackOptions } from '../types';
66
import type { DialogComponent } from '../widget/Dialog';
77

88
/**
9-
* Calls `sendFeedback` to send feedback, handles UI behavior of dialog.
9+
* Handles UI behavior of dialog when feedback is submitted, calls
10+
* `sendFeedback` to send feedback.
1011
*/
1112
export async function handleFeedbackSubmit(
1213
dialog: DialogComponent | null,
@@ -33,7 +34,7 @@ export async function handleFeedbackSubmit(
3334
// Success!
3435
return resp;
3536
} catch (err) {
36-
logger.error(err);
37+
__DEBUG_BUILD__ && logger.error(err);
3738
showFetchError();
3839
}
3940
}

0 commit comments

Comments
 (0)