Skip to content

Commit cc43a04

Browse files
committed
review fixes
1 parent 9c02d47 commit cc43a04

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/feedback/src/integration.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,12 @@ export class Feedback implements Integration {
298298

299299
// Don't create if it already exists
300300
if (!this._shadow || !this._host) {
301+
const { id, colorScheme, themeLight, themeDark } = options;
301302
const { shadow, host } = createShadowHost({
302-
id: options.id,
303-
colorScheme: options.colorScheme,
304-
themeLight: options.themeLight,
305-
themeDark: options.themeDark,
303+
id,
304+
colorScheme,
305+
themeLight,
306+
themeDark,
306307
});
307308
this._shadow = shadow;
308309
this._host = host;

packages/feedback/src/sendFeedback.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ export function sendFeedback(
1919
{ name, email, message, url = getLocationHref() }: SendFeedbackParams,
2020
{ includeReplay = true }: SendFeedbackOptions = {},
2121
): ReturnType<typeof sendFeedbackRequest> {
22-
const hub = getCurrentHub();
23-
const client = hub && hub.getClient<BrowserClient>();
22+
const client = getCurrentHub().getClient<BrowserClient>();
2423
const replay = includeReplay && client ? (client.getIntegrationById('Replay') as Replay | undefined) : undefined;
2524

2625
// Prepare session replay

0 commit comments

Comments
 (0)