mirror of https://github.com/vector-im/riot-web
Fix `[object Object]` in feedback metadata (#10390)
parent
1e651bf1a5
commit
a4262cd8cf
|
@ -29,7 +29,7 @@ interface IProps {
|
||||||
title: string;
|
title: string;
|
||||||
subheading: string;
|
subheading: string;
|
||||||
rageshakeLabel: string;
|
rageshakeLabel: string;
|
||||||
rageshakeData?: Record<string, string>;
|
rageshakeData?: Record<string, any>;
|
||||||
children?: ReactNode;
|
children?: ReactNode;
|
||||||
onFinished(sendFeedback?: boolean): void;
|
onFinished(sendFeedback?: boolean): void;
|
||||||
}
|
}
|
||||||
|
|
|
@ -140,7 +140,7 @@ export const SpaceFeedbackPrompt: React.FC<{
|
||||||
rageshakeData: Object.fromEntries(
|
rageshakeData: Object.fromEntries(
|
||||||
["Spaces.allRoomsInHome", "Spaces.enabledMetaSpaces"].map((k) => [
|
["Spaces.allRoomsInHome", "Spaces.enabledMetaSpaces"].map((k) => [
|
||||||
k,
|
k,
|
||||||
String(SettingsStore.getValue(k)),
|
SettingsStore.getValue(k),
|
||||||
]),
|
]),
|
||||||
),
|
),
|
||||||
});
|
});
|
||||||
|
|
|
@ -288,7 +288,7 @@ export async function submitFeedback(
|
||||||
label: string,
|
label: string,
|
||||||
comment: string,
|
comment: string,
|
||||||
canContact = false,
|
canContact = false,
|
||||||
extraData: Record<string, string> = {},
|
extraData: Record<string, any> = {},
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
let version: string | undefined;
|
let version: string | undefined;
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue