Fix 'submit debug logs' checkbox in the rageshake form

Fixes https://github.com/vector-im/element-call/issues/550
This commit is contained in:
David Baker 2022-08-23 20:29:41 +01:00
parent 1d7da9c455
commit c550545116

View file

@ -43,9 +43,7 @@ export function FeedbackModal({ inCall, roomId, onClose, ...rest }: Props) {
const descriptionData = data.get("description"); const descriptionData = data.get("description");
const description = const description =
typeof descriptionData === "string" ? descriptionData : ""; typeof descriptionData === "string" ? descriptionData : "";
const sendLogsData = data.get("sendLogs"); const sendLogs = Boolean(data.get("sendLogs"));
const sendLogs =
typeof sendLogsData === "string" ? sendLogsData === "true" : false;
const rageshakeRequestId = randomString(16); const rageshakeRequestId = randomString(16);
submitRageshake({ submitRageshake({