Merge pull request #551 from vector-im/dbkr/fix_rageshake_form

Fix 'submit debug logs' checkbox in the rageshake form
This commit is contained in:
David Baker 2022-08-24 09:53:47 +01:00 committed by GitHub
commit a479863f88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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