From 657b88daa4419dd7d57c44fd569915b623034e9e Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Sat, 13 Jan 2024 11:02:06 +0000 Subject: [PATCH] Fix do not share chat logs on disputes by default --- frontend/src/components/TradeBox/Forms/Dispute.tsx | 2 +- frontend/src/components/TradeBox/index.tsx | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/TradeBox/Forms/Dispute.tsx b/frontend/src/components/TradeBox/Forms/Dispute.tsx index c5235894..dd568955 100644 --- a/frontend/src/components/TradeBox/Forms/Dispute.tsx +++ b/frontend/src/components/TradeBox/Forms/Dispute.tsx @@ -11,7 +11,7 @@ export interface DisputeForm { export const defaultDispute: DisputeForm = { statement: '', - attachLogs: true, + attachLogs: false, badStatement: '', }; diff --git a/frontend/src/components/TradeBox/index.tsx b/frontend/src/components/TradeBox/index.tsx index 01c9714e..8ff52f2f 100644 --- a/frontend/src/components/TradeBox/index.tsx +++ b/frontend/src/components/TradeBox/index.tsx @@ -308,10 +308,9 @@ const TradeBox = ({ baseUrl, onStartAgain }: TradeBoxProps): JSX.Element => { }; const submitStatement = function (): void { - const slot = garage.getSlot(); let statement = dispute.statement; if (dispute.attachLogs) { - const payload = { statement, messages, token: slot?.token }; + const payload = { statement, messages }; statement = JSON.stringify(payload, null, 2); } setLoadingButtons({ ...noLoadingButtons, submitStatement: true });