Fix `[object Object]` in feedback metadata (#10390)

pull/28788/head^2
Michael Telatynski 2023-03-15 16:53:49 +00:00 committed by GitHub
parent 1e651bf1a5
commit a4262cd8cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ interface IProps {
title: string;
subheading: string;
rageshakeLabel: string;
rageshakeData?: Record<string, string>;
rageshakeData?: Record<string, any>;
children?: ReactNode;
onFinished(sendFeedback?: boolean): void;
}

View File

@ -140,7 +140,7 @@ export const SpaceFeedbackPrompt: React.FC<{
rageshakeData: Object.fromEntries(
["Spaces.allRoomsInHome", "Spaces.enabledMetaSpaces"].map((k) => [
k,
String(SettingsStore.getValue(k)),
SettingsStore.getValue(k),
]),
),
});

View File

@ -288,7 +288,7 @@ export async function submitFeedback(
label: string,
comment: string,
canContact = false,
extraData: Record<string, string> = {},
extraData: Record<string, any> = {},
): Promise<void> {
let version: string | undefined;
try {