From c5505451164b4b0a35c1565652870d19f7d9fe75 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 23 Aug 2022 20:29:41 +0100 Subject: [PATCH] Fix 'submit debug logs' checkbox in the rageshake form Fixes https://github.com/vector-im/element-call/issues/550 --- src/room/FeedbackModal.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/room/FeedbackModal.tsx b/src/room/FeedbackModal.tsx index ccf991e..7b452d8 100644 --- a/src/room/FeedbackModal.tsx +++ b/src/room/FeedbackModal.tsx @@ -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({